Couldn't select pixels of TPFs in interact()
See original GitHub issueProblem description interact() is not working properly. I could not select the pixels in TPFs. When I try to select a pixel, the bottom row pixels automatically get selected. I could not select any pixel other than the bottom row pixels.
Example
import lightkurve
tpf = lk.search_targetpixelfile("HL Tau", author='K2', campaign=13, cadence='long').download()
tpf.interact()
Expected behavior When I click a pixel in the tpf stamp, the pixel actually should get selected. But it doesn’t. Instead, the pixels of the lowest row get selected. I couldn’t select any pixel other than the pixels of the lowest row.
Environment
- Windows
- lightkurve version 2.0.3
- installation method - pip
- Executed the code in Python 3 in JupyterNotebook (version 6.2.0)
Issue Analytics
- State:
- Created 3 years ago
- Comments:38 (8 by maintainers)
Top Results From Across the Web
Bug listing with status RESOLVED with resolution FIXED as at ...
Bug listing with status RESOLVED with resolution FIXED as at 2022/12/24 01:46:04.
Read more >Changelog — Python 3.11.1 documentation
gh-99576: Fix .save() method for LWPCookieJar and MozillaCookieJar : saved file was not truncated on repeated save.
Read more >Read only file system android emulator - Luma Boutique
After that select the file explorer tab. I create a avd by using avd manager in Eclipse. How do I get Aug 25,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey ya’ll, yes Bryan is absolutely right, and the bug is clear— I used 2D arrays for a
ColumnDataSource
, that only supports 1D arrays. The fact that it worked at all is sort of a coincidence/miracle, and I thank Bryan for figuring that out, and also apologize for letting this issue fester and polluting your notifications. Sorry Bryan! We are grateful for all the awesome bokeh features that enabled this popularinteract()
dashboard.The clear fix is to flatten and the arrays. I started a PR (linked) in that direction, but it needs some spot-checking of array shapes that is tricky to do without some numpy surgery. If any lightkurve users want to pair code with me for fun, tweet @ me:
gully_
And yes to reiterate what previous folks have said, the temporary workaround is to usebokeh <2.3
, but we emphasize that’s temporary while we address the root cause.Update: a fix for this issue has been included in the Lightkurve v2.2.0 release.