Skip to content

Commit 701a4e3

Browse files
committed
formatting fixes
1 parent 851499b commit 701a4e3

File tree

3 files changed

+34
-12
lines changed

3 files changed

+34
-12
lines changed

docs/mast/mast_catalog.rst

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,11 @@ The table to query is a required parameter.
117117

118118
.. doctest-remote-data::
119119

120-
>>> catalog_data = Catalogs.query_region("158.47924 -7.30962", radius=0.1,
121-
... catalog="Panstarrs", data_release="dr1", table="mean")
120+
>>> catalog_data = Catalogs.query_region("158.47924 -7.30962",
121+
... radius=0.1,
122+
... catalog="Panstarrs",
123+
... data_release="dr1",
124+
... table="mean")
122125
>>> print("Number of results:",len(catalog_data))
123126
Number of results: 7007
124127
>>> print(catalog_data[:10]) # doctest: +IGNORE_OUTPUT
@@ -168,7 +171,9 @@ The TESS Input Catalog (TIC), Disk Detective Catalog, and PanSTARRS Catalog can
168171
>>> from astroquery.mast import Catalogs
169172
...
170173
>>> catalog_data = Catalogs.query_criteria(catalog="Ctl",
171-
... objectname='M101', radius=1, Tmag=[10.75,11])
174+
... objectname='M101',
175+
... radius=1,
176+
... Tmag=[10.75,11])
172177
>>> print(catalog_data)
173178
ID version HIP TYC ... raddflag wdflag objID
174179
--------- -------- --- ------------ ... -------- ------ ---------
@@ -187,7 +192,9 @@ The TESS Input Catalog (TIC), Disk Detective Catalog, and PanSTARRS Catalog can
187192
>>> from astroquery.mast import Catalogs
188193
...
189194
>>> catalog_data = Catalogs.query_criteria(catalog="DiskDetective",
190-
... objectname="M10",radius=2,state="complete")
195+
... objectname="M10",
196+
... radius=2,
197+
... state="complete")
191198
>>> print(catalog_data) # doctest: +IGNORE_OUTPUT
192199
designation ... ZooniverseURL
193200
------------------- ... ----------------------------------------------------
@@ -232,11 +239,15 @@ tuples of criteria decorator (min, gte, gt, max, lte, lt, like, contains) and va
232239

233240
.. doctest-remote-data::
234241

235-
>>> catalog_data = Catalogs.query_criteria(coordinates="5.97754 32.53617", radius=0.01,
236-
... catalog="PANSTARRS", table="mean", data_release="dr2",
242+
>>> catalog_data = Catalogs.query_criteria(coordinates="5.97754 32.53617",
243+
... radius=0.01,
244+
... catalog="PANSTARRS",
245+
... table="mean",
246+
... data_release="dr2",
237247
... nStackDetections=[("gte", 2)],
238248
... columns=["objName", "objID", "nStackDetections", "distance"],
239-
... sort_by=[("desc", "distance")], pagesize=15)
249+
... sort_by=[("desc", "distance")],
250+
... pagesize=15)
240251
>>> print(catalog_data[:10]) # doctest: +IGNORE_OUTPUT
241252
objName objID nStackDetections distance
242253
--------------------- ------------------ ---------------- ---------------------

docs/mast/mast_cut.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ parameter will result in an error when set to 'TICA'.
125125

126126
>>> from astroquery.mast import Tesscut
127127
...
128-
>>> hdulist = Tesscut.get_cutouts(objectname="Eleonora", product='tica', moving_target=True, size=5, sector=6)
128+
>>> hdulist = Tesscut.get_cutouts(objectname="Eleonora",
129+
... product='tica',
130+
... moving_target=True,
131+
... sector=6)
129132
Traceback (most recent call last):
130133
...
131134
astroquery.exceptions.InvalidQueryError: Only SPOC is available for moving targets queries.
@@ -145,7 +148,9 @@ pixel file will be produced for each one.
145148
>>> import astropy.units as u
146149
...
147150
>>> cutout_coord = SkyCoord(107.18696, -70.50919, unit="deg")
148-
>>> manifest = Tesscut.download_cutouts(coordinates=cutout_coord, size=[5, 5]*u.arcmin, sector=9) # doctest: +IGNORE_OUTPUT
151+
>>> manifest = Tesscut.download_cutouts(coordinates=cutout_coord,
152+
... size=[5, 5]*u.arcmin,
153+
... sector=9) # doctest: +IGNORE_OUTPUT
149154
Downloading URL https://mast.stsci.edu/tesscut/api/v0.1/astrocut?ra=107.18696&dec=-70.50919&y=0.08333333333333333&x=0.11666666666666667&units=d&sector=9 to ./tesscut_20210716150026.zip ... [Done]
150155
>>> print(manifest) # doctest: +IGNORE_OUTPUT
151156
Local Path
@@ -163,7 +168,10 @@ and because the TICA products are not available for sectors 1-26, we request cut
163168
>>> import astropy.units as u
164169
...
165170
>>> cutout_coord = SkyCoord(107.18696, -70.50919, unit="deg")
166-
>>> manifest = Tesscut.download_cutouts(coordinates=cutout_coord, product='tica', size=[5, 7]*u.arcmin, sector=27) # doctest: +IGNORE_OUTPUT
171+
>>> manifest = Tesscut.download_cutouts(coordinates=cutout_coord,
172+
... product='tica',
173+
... size=[5, 7]*u.arcmin,
174+
... sector=27) # doctest: +IGNORE_OUTPUT
167175
Downloading URL https://mast.stsci.edu/tesscut/api/v0.1/astrocut?ra=107.18696&dec=-70.50919&y=0.08333333333333333&x=0.11666666666666667&units=d&product=TICA&sector=27 to ./tesscut_20230214150644.zip ... [Done]
168176
>>> print(manifest) # doctest: +IGNORE_OUTPUT
169177
Local Path

docs/mast/mast_obsquery.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ curl script that can be used to download the files at a later time.
385385
>>> single_obs = Observations.query_criteria(obs_collection="IUE", obs_id="lwp13058")
386386
>>> data_products = Observations.get_product_list(single_obs)
387387
...
388-
>>> table = Observations.download_products(data_products, productType="SCIENCE", curl_flag=True) # doctest: +IGNORE_OUTPUT
388+
>>> table = Observations.download_products(data_products,
389+
... productType="SCIENCE",
390+
... curl_flag=True) # doctest: +IGNORE_OUTPUT
389391
Downloading URL https://mast.stsci.edu/portal/Download/stage/anonymous/public/514cfaa9-fdc1-4799-b043-4488b811db4f/mastDownload_20170629162916.sh to ./mastDownload_20170629162916.sh ... [Done]
390392

391393

@@ -463,7 +465,8 @@ To get a list of S3 URIs, use the following workflow:
463465
>>> import os
464466
>>> from astroquery.mast import Observations
465467
...
466-
>>> # Simply call the `enable_cloud_dataset` method from `Observations`. The default provider is `AWS`, but we will write it in manually for this example:
468+
>>> # Simply call the `enable_cloud_dataset` method from `Observations`.
469+
>>> # The default provider is `AWS`, but we will write it in manually for this example:
467470
>>> Observations.enable_cloud_dataset(provider='AWS')
468471
INFO: Using the S3 STScI public dataset [astroquery.mast.core]
469472
...

0 commit comments

Comments
 (0)