-
-
Notifications
You must be signed in to change notification settings - Fork 427
tesscut moving target cutouts make individual req per sector #3467
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
base: main
Are you sure you want to change the base?
Conversation
…make individual requests per sector to reduce memory pressure on the service
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3467 +/- ##
==========================================
+ Coverage 71.48% 71.52% +0.03%
==========================================
Files 234 234
Lines 20096 20124 +28
==========================================
+ Hits 14365 14393 +28
Misses 5731 5731 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Could you add another test case to cover the scenario where no TESS sectors are returned? |
astroquery/mast/cutouts.py
Outdated
| if moving_target and sector is None: | ||
| with warnings.catch_warnings(): | ||
| warnings.filterwarnings("ignore", category=NoResultsWarning) | ||
| sector_table = self.get_sectors(objectname=objectname, moving_target=True, mt_type=mt_type) | ||
|
|
||
| localpath_table = Table(names=["Local Path"], dtype=[str]) | ||
|
|
||
| if len(sector_table) == 0: | ||
| warnings.warn("Coordinates are not in any TESS sector.", NoResultsWarning) | ||
| return localpath_table | ||
|
|
||
| # Get unique sectors | ||
| unique_sectors = sorted(set(sector_table["sector"])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we pull this section of code into a separate helper function that can also be used in get_cutouts?
|
Not sure what's up with that test failure, but it doesn't look like it's coming from MAST. |
No description provided.