-
-
Couldn't load subscription status.
- Fork 424
enforce upper limit on MastMissions query radius #3447
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
811e732 to
0204c54
Compare
0204c54 to
941a111
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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.
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] |
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.
Nitpick, but could you put MastMissions in double backticks? Just so users know that we're referring to a class.
astroquery/mast/missions.py
Outdated
| Raises | ||
| ------ | ||
| InvalidQueryError | ||
| If the query radius is larger than the limit (30 arcminute). |
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.
Should be "30 arcminutes" in parentheses.
astroquery/mast/missions.py
Outdated
| Raises | ||
| ------ | ||
| InvalidQueryError | ||
| If the query radius is larger than the limit (30 arcminute). |
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.
See above comment
The
astroquery.mast.MastMissionssupportsquery_regionandquery_criteriawithradius <= 0.5 * u.deg. The current uninformative error message whenradius > 0.5 * u.degcomes fromPOST.This PR adds the radius limitation to the docstrings, and raises an
InvalidQueryErrorifradius > 0.5 * u.deg.