Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated catalogsearch to ignore cases of input catalogs, and added a way to avoid checking the cached file size #38

Merged
merged 8 commits into from
Jan 12, 2025

Conversation

christinahedges
Copy link
Collaborator

@christinahedges christinahedges commented Jan 2, 2025

Based on issue #34 I added a config parameter CHECK_CACHED_FILE_SIZE which, when set to False, will not search for the data using astroquery if the file already exists. This is set to True by default, but can be set to False to enable impatient users to speed up the return of their cached data.

Fixes #34

I also (completely accidentally) included a minor change to catalogsearch. This was supposed to be its own pull request and I message up. I frequently use "KIC" or "TIC" for input catalogs as they are usually capitalized, so I updated the codebase for catalogsearch to use "lower" so that we aren't sensitive to cases.

@christinahedges christinahedges added this to the v1.2.0 milestone Jan 2, 2025
@christinahedges
Copy link
Collaborator Author

@tylerapritchard this now includes a test!

@tylerapritchard
Copy link
Collaborator

I've temporarily removed the configuration parameter test since I was able to verify that the parameter is working for me locally, but the test was failing both locally and on github actions. We should revisit but I want to get this merged since its functional.

@tylerapritchard tylerapritchard merged commit 904f72d into main Jan 12, 2025
4 checks passed
@christinahedges christinahedges changed the title Updated catalogsearch to ignore cases of input catalogs Updated catalogsearch to ignore cases of input catalogs, and added a way to avoid checking the cached file size Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lksearch needs a way around the astroquery file size checking.
2 participants