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.

lightkurve should cache its SearchResult object

See original GitHub issue

I think lightkurve should somehow cache the SearchResult object, so that if MAST goes down (as it frequently does) or if I’m coding on a plane (as I frequently am) if I run my lk.search_lightcurvefile('NAME') it still gives me the same result, and .download() will just fetch the path to the cached file.

This is quite a difficult feature to add, but I think it should be possible.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
barentsencommented, Oct 22, 2019

Agreed that the lifetime of the cache would definitely have to be set/configured/checked!

We may have a look into it, time-permitting.

0reactions
barentsencommented, May 18, 2020

I am going to close this issue for now because the caching of search results is being implemented as an astroquery feature, most notably here: https://github.com/astropy/astroquery/pull/1634

Depending on how this feature will be implemented inside astroquery, we may or may not have to open a new issue to add support for it inside Lightkurve.

Footnote: as of Lightkurve v1.9.1 the speed of search operations has been increased ten-fold, so anyone who finds this issue because their search operations are slow may want to upgrade to >1.9.1!

Read more comments on GitHub >

github_iconTop Results From Across the Web

lightkurve should cache its SearchResult object #461 - GitHub
I think lightkurve should somehow cache the SearchResult object, so that if MAST goes down (as it frequently does) or if I'm coding...
Read more >
Source code for lightkurve.search
The purpose of this class is to provide a convenient way to inspect and download products that have been identified using one of...
Read more >
lightkurve.SearchResult.download_all
Location where the data files will be stored. Defaults to “~/.lightkurve-cache” if None is passed. cutout_sizeint, float or tuple, optional.
Read more >
Using Light Curve Files with Lightkurve
The search function returns a SearchResult object which has several convenient operations. For example, we can select the fourth data product in the...
Read more >
lightkurve.LightCurve.query_solar_system_objects
These objects can move across a target's photometric aperture mask on time scales of hours to ... If True will cache the search...
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