Skip to content

Conversation

@falkben
Copy link

@falkben falkben commented Nov 26, 2025

No description provided.

…make individual requests per sector to reduce memory pressure on the service
@snbianco snbianco requested review from bsipocz and snbianco November 26, 2025 16:52
@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.52%. Comparing base (95e7702) to head (5b58867).
⚠️ Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@snbianco
Copy link
Contributor

Could you add another test case to cover the scenario where no TESS sectors are returned?

@snbianco snbianco added the mast label Nov 26, 2025
Comment on lines 323 to 335
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"]))
Copy link
Contributor

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?

@bsipocz bsipocz added this to the 0.4.12 milestone Nov 26, 2025
@snbianco
Copy link
Contributor

Not sure what's up with that test failure, but it doesn't look like it's coming from MAST.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants