Skip to content

MAST: Get map of cloud URIs from MastMissions - #3690

Merged
bsipocz merged 4 commits into
astropy:mainfrom
snbianco:missions-cloud-uris
Nov 4, 2026
Merged

bsipocz merged 4 commits into
astropy:mainfrom
snbianco:missions-cloud-uris

Conversation

@snbianco

@snbianco snbianco commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Added MastMissions.get_cloud_uri_map to map products to their corresponding cloud locations. Closely mirrors the Observations.get_cloud_uris method.

I included some pieces from other PRs in this one so that certain things would work, and that's why test coverage is a bit low. Those pieces have tests added for them in other PRs.

@snbianco snbianco added the mast label Oct 21, 2026
@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.75362% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.00%. Comparing base (6d145c7) to head (7555b28).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
astroquery/mast/missions.py 92.64% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3690      +/-   ##
==========================================
+ Coverage   73.94%   74.00%   +0.05%     
==========================================
  Files         228      228              
  Lines       21572    21640      +68     
==========================================
+ Hits        15952    16015      +63     
- Misses       5620     5625       +5     

☔ View full report in Codecov by Harness.
📢 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
snbianco marked this pull request as ready for review October 23, 2026 15:56
@snbianco
snbianco requested a review from bsipocz October 23, 2026 15:56
@snbianco
snbianco force-pushed the missions-cloud-uris branch 2 times, most recently from 88759c8 to 67008b5 Compare November 3, 2026 05:21
@bsipocz bsipocz added this to the 0.4.12 milestone Nov 3, 2026

@bsipocz bsipocz left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waiting for the tests to run they passed, but overall this looks good once the minor inconsistency is fixed.

Comment thread astroquery/mast/missions.py Outdated
For example: {"productType": "SCIENCE", "extension"=["fits","jpg"]}
verbose : bool, optional
Default True. Whether to issue warnings if a product cannot be found in the cloud.
**criteria

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is minor inconsistency, mission is missing from the docstring and criteria is not in the signature (but afaik is not used in the code anyway)

Comment thread astroquery/mast/missions.py Resolved
@snbianco
snbianco force-pushed the missions-cloud-uris branch from 0dd953d to b3528ab Compare November 3, 2026 08:16
@snbianco
snbianco force-pushed the missions-cloud-uris branch from b3528ab to 2649917 Compare November 3, 2026 08:23

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the rebase there is an actual real conflict with having a duplicated download_file method, which is in fact not a duplicate on the content level.

Could you please have a look at it and keep one or the other? Then we need to rerun the remote tests and merge this away.

@snbianco

snbianco commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Done!

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. The RTD failure is unrelated and is due to the requests intersphinx being unavailable.

@bsipocz
bsipocz merged commit 2cffea5 into astropy:main Nov 4, 2026
11 of 12 checks passed
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.

2 participants