Skip to content

Commit e0731e7

Browse files
authored
Merge pull request #3074 from snbianco/ASB-18099-remove-dupes-log
INFO message when removing duplicate products should give the correct number of products based on filters
2 parents 91d160f + c7fa81c commit e0731e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

astroquery/mast/observations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,12 +740,12 @@ def download_products(self, products, *, download_dir=None, flat=False,
740740

741741
products = vstack(product_lists)
742742

743-
# Remove duplicate products
744-
products = self._remove_duplicate_products(products)
745-
746743
# apply filters
747744
products = self.filter_products(products, mrp_only=mrp_only, **filters)
748745

746+
# remove duplicate products
747+
products = self._remove_duplicate_products(products)
748+
749749
if not len(products):
750750
warnings.warn("No products to download.", NoResultsWarning)
751751
return

0 commit comments

Comments
 (0)