Skip to content

Commit 74cee5e

Browse files
committed
Changelog, fix docstrings
1 parent 5087451 commit 74cee5e

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ mast
105105

106106
- Improved ``MastMissions`` queries to accept lists for query critieria values, in addition to comma-delimited strings. [#3319]
107107

108+
- Enhanced ``filter_products`` methods in ``MastMissions`` and ``Observations`` to support advanced filtering expressions
109+
for numeric columns. [#3365]
110+
108111

109112
Infrastructure, Utility and Other Changes and Additions
110113
-------------------------------------------------------

astroquery/mast/missions.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -476,17 +476,15 @@ def filter_products(self, products, *, extension=None, **filters):
476476
477477
Each keyword corresponds to a column name in the table, with the argument being one or more
478478
acceptable values for that column. AND logic is applied between filters, OR logic within
479-
each filter set.
480-
481-
For example:
482-
type="science", extension=["fits", "jpg"]
479+
each filter set. For example: type="science", extension=["fits", "jpg"]
483480
484481
For columns with numeric data types (int or float), filter values can be expressed
485482
in several ways:
486-
- A single number: size=100
487-
- A range in the form "start..end": size="100..1000"
488-
- A comparison operator followed by a number: size=">=1000"
489-
- A list of expressions (OR logic): size=[100, "500..1000", ">=1500"]
483+
484+
- A single number: ``size=100``
485+
- A range in the form "start..end": ``size="100..1000"``
486+
- A comparison operator followed by a number: ``size=">=1000"``
487+
- A list of expressions (OR logic): ``size=[100, "500..1000", ">=1500"]``
490488
491489
Returns
492490
-------

astroquery/mast/observations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -563,15 +563,15 @@ def filter_products(self, products, *, mrp_only=False, extension=None, **filters
563563
acceptable values for that column. AND logic is applied between filters, OR logic within
564564
each filter set.
565565
566-
For example:
567-
type="science", extension=["fits", "jpg"]
566+
For example: type="science", extension=["fits", "jpg"]
568567
569568
For columns with numeric data types (int or float), filter values can be expressed
570569
in several ways:
571-
- A single number: size=100
572-
- A range in the form "start..end": size="100..1000"
573-
- A comparison operator followed by a number: size=">=1000"
574-
- A list of expressions (OR logic): size=[100, "500..1000", ">=1500"]
570+
571+
- A single number: ``size=100``
572+
- A range in the form "start..end": ``size="100..1000"``
573+
- A comparison operator followed by a number: ``size=">=1000"``
574+
- A list of expressions (OR logic): ``size=[100, "500..1000", ">=1500"]``
575575
576576
Returns
577577
-------

0 commit comments

Comments
 (0)