Skip to content

Commit 6940865

Browse files
committed
fix cross references in docstrings
1 parent 5886d5e commit 6940865

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

astroquery/heasarc/core.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def get_default_radius(self, catalog_name):
111111
112112
Returns
113113
-------
114-
The radius as ~astropy.units.Quantity
114+
The radius as `~astropy.units.Quantity`
115115
116116
"""
117117
meta = self._meta[
@@ -126,12 +126,12 @@ def _set_session(self, session):
126126
127127
Parameters
128128
----------
129-
session : ~requests.Session
129+
session : `~requests.Session`
130130
The requests.Session to use
131131
132132
"""
133133
if not isinstance(session, requests.Session):
134-
raise ValueError('session is not a ~requests.Session instance')
134+
raise ValueError('session is not a `~requests.Session` instance')
135135

136136
self._session = session
137137

@@ -187,7 +187,7 @@ def query_mission_list(self, *, cache=True, get_query_payload=False):
187187
188188
This method is deprecated, and is included only for limited
189189
backward compatibility with the old astroquery.Heasarc that uses
190-
the Browse interface. Please use ~Heasarc.list_catalogs instead.
190+
the Browse interface. Please use `~Heasarc.list_catalogs` instead.
191191
192192
"""
193193
return self.list_catalogs(master=False)
@@ -212,7 +212,7 @@ def list_columns(self, catalog_name, full=False):
212212
tables = self.tap.tables
213213
if catalog_name not in tables.keys():
214214
msg = (f'{catalog_name} is not available as a public catalog. '
215-
'Try passing keywords to ~Heasarc.list_catalogs() to find '
215+
'Try passing keywords to `~Heasarc.list_catalogs` to find '
216216
'the catalog name')
217217
raise ValueError(msg)
218218

@@ -238,7 +238,7 @@ def query_mission_cols(self, mission, *, cache=True,
238238
239239
NOTE: This method is deprecated, and is included only for limited
240240
backward compatibility with the old astroquery.Heasarc that uses
241-
the Browse interface. Please use ~Heasarc.list_columns instead.
241+
the Browse interface. Please use `~Heasarc.list_columns` instead.
242242
243243
Parameters
244244
----------
@@ -324,7 +324,7 @@ def query_region(self, position=None, catalog=None, radius=None, *,
324324
`astropy.units` may also be used. If None, a default value
325325
appropriate for the selected catalog is used. To see the default
326326
radius for the catalog, see
327-
~astroquery.heasarc.Heasarc.get_default_radius.
327+
`~astroquery.heasarc.Heasarc.get_default_radius`.
328328
width : str, `~astropy.units.Quantity` object [Required for
329329
spatial == ``'box'``.]
330330
The string must be parsable by `~astropy.coordinates.Angle`. The
@@ -610,7 +610,7 @@ def download_data(self, links, host='heasarc', location='.'):
610610
if host_column not in links.colnames:
611611
raise ValueError(
612612
f'No {host_column} column found in the table. Call '
613-
'~locate_data first'
613+
'`~locate_data` first'
614614
)
615615

616616
if host == 'heasarc':
@@ -632,7 +632,7 @@ def _download_heasarc(self, links, location='.'):
632632
"""Download data from the heasarc main server using xamin's tar servlet
633633
634634
Do not call directly.
635-
Users should be using ~self.download_data instead
635+
Users should be using `~self.download_data` instead
636636
637637
Parameters
638638
----------
@@ -689,7 +689,7 @@ def _copy_sciserver(self, links, location='.'):
689689
"""Copy data from the local archive on sciserver
690690
691691
Do not call directly.
692-
Users should be using ~self.download_data instead
692+
Users should be using `~self.download_data` instead
693693
694694
"""
695695
if not (os.path.exists('/FTP/') and os.environ['HOME'].split('/')[-1] == 'idies'):
@@ -720,7 +720,7 @@ def _download_s3(self, links, location='.'):
720720
Assuming open access.
721721
722722
Do not call directly.
723-
Users should be using ~self.download_data instead
723+
Users should be using `~self.download_data` instead
724724
725725
"""
726726
keys_list = [link for link in links['aws']]

0 commit comments

Comments
 (0)