Skip to content

Conversation

@bmorris3
Copy link
Contributor

The astroquery.mast.MastMissions supports query_region and query_criteria with radius <= 0.5 * u.deg. The current uninformative error message when radius > 0.5 * u.deg comes from POST.

This PR adds the radius limitation to the docstrings, and raises an InvalidQueryError if radius > 0.5 * u.deg.

@bmorris3 bmorris3 force-pushed the mastmissions-radius-limit branch from 811e732 to 0204c54 Compare October 24, 2025 16:38
@bmorris3 bmorris3 force-pushed the mastmissions-radius-limit branch from 0204c54 to 941a111 Compare October 24, 2025 16:44
@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.73%. Comparing base (b4ccef0) to head (b208ae9).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3447   +/-   ##
=======================================
  Coverage   70.72%   70.73%           
=======================================
  Files         232      232           
  Lines       20041    20046    +5     
=======================================
+ Hits        14174    14179    +5     
  Misses       5867     5867           

☔ 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.

Copy link
Contributor

@snbianco snbianco left a comment

Choose a reason for hiding this comment

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

Thank you so much for this PR! There are a few very minor things I commented on, but overall, this looks great.

CHANGES.rst Outdated
- Filtering by file extension or by a string column is now case-insensitive in ``MastMissions.filter_products``
and ``Observations.filter_products``. [#3427]

- Raise informative error if MastMissions query radius is too large. [#3447]
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick, but could you put MastMissions in double backticks? Just so users know that we're referring to a class.

Raises
------
InvalidQueryError
If the query radius is larger than the limit (30 arcminute).
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be "30 arcminutes" in parentheses.

Raises
------
InvalidQueryError
If the query radius is larger than the limit (30 arcminute).
Copy link
Contributor

Choose a reason for hiding this comment

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

See above comment

@snbianco snbianco requested a review from bsipocz October 24, 2025 17:56
@snbianco snbianco added the mast label Oct 27, 2025
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