|
5 | 5 |
|
6 | 6 | This the base class for MAST queries.
|
7 | 7 | """
|
8 |
| -import warnings |
9 |
| - |
10 |
| -from astropy.utils.exceptions import AstropyDeprecationWarning |
| 8 | +from astropy.utils import deprecated |
11 | 9 | from ..query import QueryWithLogin
|
12 | 10 | from . import utils
|
13 | 11 | from .auth import MastAuth
|
@@ -84,21 +82,33 @@ def logout(self):
|
84 | 82 | self._auth_obj.logout()
|
85 | 83 | self._authenticated = False
|
86 | 84 |
|
| 85 | + @deprecated(since='v0.4.8', |
| 86 | + message=('This function is non-operational and will be removed in a future release.')) |
87 | 87 | def enable_cloud_dataset(self, provider="AWS", profile=None, verbose=True):
|
88 | 88 | """
|
89 |
| - .. deprecated:: 0.4.8 |
90 |
| - This function is non-operational and has been deprecated. |
| 89 | + Enable downloading public files from S3 instead of MAST. |
| 90 | + Requires the boto3 library to function. |
| 91 | +
|
| 92 | + Parameters |
| 93 | + ---------- |
| 94 | + provider : str |
| 95 | + Which cloud data provider to use. We may in the future support multiple providers, |
| 96 | + though at the moment this argument is ignored. |
| 97 | + profile : str |
| 98 | + Profile to use to identify yourself to the cloud provider (usually in ~/.aws/config). |
| 99 | + verbose : bool |
| 100 | + Default True. |
| 101 | + Logger to display extra info and warning. |
91 | 102 | """
|
92 |
| - warnings.warn('This function is non-operational and will be removed in a future release.', |
93 |
| - AstropyDeprecationWarning) |
| 103 | + pass |
94 | 104 |
|
| 105 | + @deprecated(since='v0.4.8', |
| 106 | + message=('This function is non-operational and will be removed in a future release.')) |
95 | 107 | def disable_cloud_dataset(self):
|
96 | 108 | """
|
97 |
| - .. deprecated:: 0.4.8 |
98 |
| - This function is non-operational and has been deprecated. |
| 109 | + Disables downloading public files from S3 instead of MAST. |
99 | 110 | """
|
100 |
| - warnings.warn('This function is non-operational and will be removed in a future release.', |
101 |
| - AstropyDeprecationWarning) |
| 111 | + pass |
102 | 112 |
|
103 | 113 | def resolve_object(self, objectname):
|
104 | 114 | """
|
|
0 commit comments