Skip to content

Commit 51d4502

Browse files
snbiancobsipocz
authored andcommitted
deprecate functions in core
1 parent 61f1017 commit 51d4502

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ mast
218218
- Added function ``mast.Observations.get_unique_product_list`` to return the unique data products associated with
219219
given observations. [#3096]
220220

221+
- Deprecate ``enable_cloud_dataset`` and ``disable_cloud_dataset`` in classes where they
222+
are non-operational. [#3113]
223+
221224
mpc
222225
^^^
223226

astroquery/mast/core.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
66
This the base class for MAST queries.
77
"""
8+
import warnings
9+
10+
from astropy.utils.exceptions import AstropyDeprecationWarning
811
from ..query import QueryWithLogin
912
from . import utils
1013
from .auth import MastAuth
14+
from .cloud import CloudAccess
1115
from .discovery_portal import PortalAPI
1216
from .services import ServiceAPI
1317

@@ -81,6 +85,26 @@ def logout(self):
8185
self._auth_obj.logout()
8286
self._authenticated = False
8387

88+
def enable_cloud_dataset(self, provider="AWS", profile=None, verbose=True):
89+
"""
90+
.. deprecated:: 0.4.8
91+
This function is non-operational and has been deprecated.
92+
93+
:raises AstropyDeprecationWarning: This function is deprecated and should not be used.
94+
"""
95+
warnings.warn('This function is non-operational and will be removed in a future release.',
96+
AstropyDeprecationWarning)
97+
98+
def disable_cloud_dataset(self):
99+
"""
100+
.. deprecated:: 0.4.8
101+
This function is non-operational and has been deprecated.
102+
103+
:raises AstropyDeprecationWarning: This function is deprecated and should not be used.
104+
"""
105+
warnings.warn('This function is non-operational and will be removed in a future release.',
106+
AstropyDeprecationWarning)
107+
84108
def resolve_object(self, objectname):
85109
"""
86110
Resolves an object name to a position on the sky.

0 commit comments

Comments
 (0)