question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Couldn't select pixels of TPFs in interact()

See original GitHub issue

Problem 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()

Screenshot (354) Screenshot (356)

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:closed
  • Created 3 years ago
  • Comments:38 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
gullycommented, May 11, 2021

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 popular interact() 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 use bokeh <2.3, but we emphasize that’s temporary while we address the root cause.

2reactions
barentsencommented, Apr 12, 2022

Update: a fix for this issue has been included in the Lightkurve v2.2.0 release.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found