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.

search_lightcurvefile (and any other search) can only be used once per run

See original GitHub issue

Problem description: I would like to analyze many light curves at once, but apparently I can only search for a target once per python run.

Example:

import lightkurve as lk
lk.search_lightcurvefile('TOI 509.01',mission='TESS').download()
# Do stuff
lk.search_lightcurvefile('TOI 1258.01',mission='TESS').download()
*** ERROR HERE: I/O operation on closed file

Expected behavior:

Find first target --> do what you need to do Find second target … and so on

Environment

  • platform: latest windows
  • lightkurve version: latest version
  • installation method: conda

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
barentsencommented, Dec 5, 2020

@LucaNap Interesting! Thanks for the report. My best guess is that your reinstall may have resulted in a newer version of astroquery being installed, which may have resolved the problem. Either way, it’ll be good to keep an eye open for other users reporting this problem.

I strongly encourage anyone who also runs into this problem to comment below or open a new issue! 👍

0reactions
LucaNapcommented, Dec 5, 2020

Thanks for the tip!

Fortunately today I had to reinstall anaconda (for different reasons) and suddenly the issue is no longer present in Lightkurve v2.0b3. Since nobody else encountered it in v1.1.3, I think you can close this issue as it was probably linked to a new version of some dependency which has recently been fixed. However if I’ll have time to play with Lightkurve 1.1.3, I’ll let you know if I find this problem again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Investigation of variable Ap Stars in TESS continuous viewing ...
Abstract. In this work, an investigation of photometric rotational variability of chemically peculiar (CP) stars is conducted.
Read more >
A guide to using Windows Search; two alternatives to Windows
These selections will be used when you run another search in the same type of folder [folder types are General items, Documents, Pictures,...
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