Skip to content

Commit 8ac505e

Browse files
committed
MAINT: adding deprecating info to docstrings
1 parent a0a635b commit 8ac505e

File tree

7 files changed

+39
-0
lines changed

7 files changed

+39
-0
lines changed

astroquery/cds/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
This research has made use of the MOCServer, a tool developed at CDS, Strasbourg, France aiming at retrieving
1717
MOCs/meta-data from known data-sets. MOC is an IVOA standard described in the following paper :
1818
http://www.ivoa.net/documents/MOC/20140602/REC-MOC-1.0-20140602.pdf
19+
20+
.. deprecated:: 0.4.7
1921
"""
2022

2123
# Licensed under a 3-clause BSD style license - see LICENSE.rst
@@ -27,6 +29,7 @@
2729
"and ``CdsClass`` has been renamed to ``MOCServerClass``. "
2830
"Please update your imports.", AstropyDeprecationWarning, stacklevel=2)
2931

32+
3033
from astroquery.mocserver import MOCServer as cds
3134
from astroquery.mocserver import MOCServerClass as CdsClass
3235
from astroquery.mocserver import conf, Conf

astroquery/ibe/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2+
"""
3+
This is the old namespace for querying the NASA/IPAC Infrared Science Archive Image Server (IBE).
4+
Please update your imports and use it from astroquery.ipac.irsa.ibe
5+
6+
.. deprecated:: 0.4.4
7+
"""
28
import warnings
39

410
warnings.warn("the ``ibe`` module has been moved to astroquery.ipac.irsa.ibe, "

astroquery/irsa/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2+
"""
3+
This is the old namespace for querying the NASA/IPAC Infrared Science Archive (IRSA).
4+
Please update your imports and use it from astroquery.ipac.irsa
5+
6+
.. deprecated:: 0.4.4
7+
"""
28
import warnings
39

410
warnings.warn("the ``irsa`` module has been moved to astroquery.ipac.irsa, "

astroquery/irsa_dust/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2+
"""
3+
This is the old namespace for querying the NASA/IPAC Infrared Science Archive Dust Reddening Tool.
4+
Please update your imports and use it from astroquery.ipac.irsa.irsa_dust
25
6+
.. deprecated:: 0.4.4
7+
"""
38

49
import warnings
510

astroquery/nasa_exoplanet_archive/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2+
"""
3+
This is the old namespace for querying the NASA Exolpanet Archive.
4+
Please update your imports and use it from astroquery.ipac.nexsci.nasa_exoplanet_archive.
5+
6+
.. deprecated:: 0.4.4
7+
"""
28
import warnings
39

410
warnings.warn("the ``nasa_exoplanet_archive`` module has been moved to "

astroquery/ned/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2+
"""
3+
This is the old namespace for querying the NASA Extragalactic Database (NED).
4+
Please update your imports and use it from astroquery.ipac.ned
5+
6+
.. deprecated:: 0.4.4
7+
"""
28
import warnings
39

410
warnings.warn("the ``ned`` module has been moved to astroquery.ipac.ned, "

astroquery/sha/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2+
"""
3+
This is the old namespace for querying the Spitzer Heritage Archive (SHA).
4+
Please update your imports and use it from astroquery.ipac.irsa.sha.
5+
6+
.. deprecated:: 0.4.4
7+
"""
28
import warnings
39

10+
411
warnings.warn("the ``sha`` module has been moved to astroquery.ipac.irsa.sha, "
512
"please update your imports.", DeprecationWarning, stacklevel=2)
613

0 commit comments

Comments
 (0)