Skip to content

Commit baa470b

Browse files
committed
Fix headings and empty code blocks
1 parent 58fc0bf commit baa470b

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

docs/cadc/cadc.rst

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The CADC hosts a number of collections and
2525
`~astroquery.cadc.CadcClass.get_collections` returns a list of all
2626
these collections:
2727

28-
.. code-block:: python
28+
2929
.. doctest-remote-data::
3030

3131
>>> from astroquery.cadc import Cadc
@@ -77,7 +77,7 @@ region or by name. The following example queries CADC for Canada
7777
France Hawaii Telescope (CFHT) data for a given region and resolves
7878
the URLs for downloading the corresponding data.
7979

80-
.. code-block:: python
80+
8181
.. doctest-remote-data::
8282

8383
>>> from astroquery.cadc import Cadc
@@ -118,7 +118,7 @@ the results on the name of the target (as an example - any other
118118
filtering possible) and resolves the URLs for both the primary and
119119
auxiliary data (in this case preview files)
120120

121-
.. code-block:: python
121+
122122
.. doctest-remote-data::
123123

124124
>>> from astroquery.cadc import Cadc
@@ -145,7 +145,7 @@ CADC data can also be queried on the target name. Note that the name
145145
is not resolved. Instead it is matched against the target name in
146146
the CADC metadata.
147147

148-
.. code-block:: python
148+
149149
.. doctest-remote-data::
150150

151151
>>> from astroquery.cadc import Cadc
@@ -165,7 +165,7 @@ the CADC metadata.
165165
If only a subsection of the FITS file is needed, CADC can query an
166166
area and resolve the cutout of a result.
167167

168-
.. code-block:: python
168+
169169
.. doctest-skip::
170170

171171
>>> from astropy import units as u
@@ -182,7 +182,7 @@ area and resolve the cutout of a result.
182182
Alternatively, if the query result is large and data does not need to be
183183
in memory, lazy access to the downloaded FITS file can be used.
184184

185-
.. code-block:: python
185+
186186
.. doctest-remote-data::
187187

188188
>>> from astropy import units as u
@@ -210,7 +210,7 @@ are needed, the result table can be passed into the
210210
`~astroquery.cadc.CadcClass.get_image_list` function, along with the
211211
cutout coordinates and radius.
212212

213-
.. code-block:: python
213+
214214
.. doctest-remote-data::
215215

216216
>>> from astroquery.cadc import Cadc
@@ -239,6 +239,7 @@ interfaces offer a quick and simple access to the data, the TAP
239239
interface presented in the next sections allows for more complex
240240
queries.
241241

242+
242243
=============================
243244
Query CADC metadata using TAP
244245
=============================
@@ -315,7 +316,7 @@ Examples of TAP access
315316

316317
To get a list of table objects:
317318

318-
.. code-block:: python
319+
319320
.. doctest-remote-data::
320321

321322

@@ -354,7 +355,7 @@ To get a list of table objects:
354355

355356
To get a single table object:
356357

357-
.. code-block:: python
358+
358359
.. doctest-remote-data::
359360

360361
>>> from astroquery.cadc import Cadc
@@ -428,7 +429,7 @@ The results can be saved in memory (default) or in a file.
428429

429430
Query without saving results in a file:
430431

431-
.. code-block:: python
432+
432433
.. doctest-remote-data::
433434

434435
>>> from astroquery.cadc import Cadc
@@ -449,7 +450,7 @@ Query without saving results in a file:
449450

450451
Query saving results in a file:
451452

452-
.. code-block:: python
453+
453454
.. doctest-skip::
454455

455456
>>> from astroquery.cadc import Cadc
@@ -463,7 +464,7 @@ Query saving results in a file:
463464

464465
A table can be uploaded to the server in order to be used in a query.
465466

466-
.. code-block:: python
467+
467468
.. doctest-skip::
468469

469470
>>> from astroquery.cadc import Cadc
@@ -491,7 +492,7 @@ The results can be saved in memory (default) or in a file.
491492

492493
Query without saving results in a file:
493494

494-
.. code-block:: python
495+
495496
.. doctest-remote-data::
496497

497498
>>> from astroquery.cadc import Cadc
@@ -525,16 +526,15 @@ Query without saving results in a file:
525526
GS-CAL20181117-2-061-G-BIAS calibration
526527
GS-CAL20181018-10-086-G-BIAS calibration
527528
Length = 100 rows
528-
529+
529530

530531
1.7 Load job
531-
~~~~~~~~~~~~~~~~~~~~~~
532+
~~~~~~~~~~~~
532533

533534
Asynchronous jobs can be loaded. You need the jobid in order to load
534535
the job.
535536

536537

537-
.. code-block:: python
538538
.. doctest-remote-data::
539539

540540
>>> from astroquery.cadc import Cadc
@@ -582,9 +582,9 @@ the job.
582582
Length = 100 rows
583583

584584

585-
---------------------------
585+
-----------------------
586586
2. Authenticated access
587-
---------------------------
587+
-----------------------
588588

589589
Some capabilities (shared tables, persistent jobs, etc.) are only
590590
available to authenticated users.
@@ -614,7 +614,6 @@ users are applicable for authenticated ones.
614614

615615
Login with username and password:
616616

617-
.. code-block:: python
618617
.. doctest-skip::
619618

620619
>>> from astroquery.cadc import Cadc
@@ -624,7 +623,6 @@ Login with username and password:
624623

625624
Login with certificate:
626625

627-
.. code-block:: python
628626
.. doctest-skip::
629627

630628
>>> from astroquery.cadc import Cadc
@@ -635,13 +633,13 @@ Login with certificate:
635633
To perform a logout:
636634

637635

638-
.. code-block:: python
639636
.. doctest-skip::
640637

641638
>>> from astroquery.cadc import Cadc
642639
>>> cadc = Cadc()
643640
>>> cadc.logout()
644641

642+
645643
Reference/API
646644
=============
647645

0 commit comments

Comments
 (0)