Skip to content

Commit 30f6ef9

Browse files
committed
Updating tests
1 parent 7d227a0 commit 30f6ef9

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

astroquery/mast/collections.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,13 @@ def query_object_async(self, objectname, *, radius=0.2*u.deg, catalog="Hsc",
204204

205205
coordinates = utils.resolve_object(objectname)
206206

207-
return self.query_region_async(coordinates, radius, catalog,
208-
version=version, pagesize=pagesize, page=page, **kwargs)
207+
return self.query_region_async(coordinates,
208+
radius=radius,
209+
catalog=catalog,
210+
version=version,
211+
pagesize=pagesize,
212+
page=page,
213+
**kwargs)
209214

210215
@class_or_instance
211216
def query_criteria_async(self, catalog, *, pagesize=None, page=None, **criteria):

astroquery/mast/observations.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def download_products(self, products, *, download_dir=None,
715715
products = vstack(product_lists)
716716

717717
# apply filters
718-
products = self.filter_products(products, mrp_only, **filters)
718+
products = self.filter_products(products, mrp_only=mrp_only, **filters)
719719

720720
if not len(products):
721721
warnings.warn("No products to download.", NoResultsWarning)
@@ -726,11 +726,15 @@ def download_products(self, products, *, download_dir=None,
726726
download_dir = '.'
727727

728728
if curl_flag: # don't want to download the files now, just the curl script
729-
manifest = self._download_curl_script(products, download_dir)
729+
manifest = self._download_curl_script(products,
730+
download_dir)
730731

731732
else:
732733
base_dir = download_dir.rstrip('/') + "/mastDownload"
733-
manifest = self._download_files(products, base_dir, cache, cloud_only)
734+
manifest = self._download_files(products,
735+
base_dir=base_dir,
736+
cache=cache,
737+
cloud_only=cloud_only)
734738

735739
return manifest
736740

astroquery/mast/tests/test_mast_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ def test_catalogs_query_object(self):
516516
assert '441662144' in result['ID']
517517

518518
result = mast.Catalogs.query_object('M1',
519-
radius=0.001,
519+
radius=0.2,
520520
catalog='plato')
521521
assert 'PICidDR1' in result.colnames
522522

0 commit comments

Comments
 (0)