Skip to content

Commit ba3204e

Browse files
keflavichbsipocz
authored andcommitted
add deprecation decorator
1 parent 82ef89b commit ba3204e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

astroquery/splatalogue/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
from . import load_species_table
1717
from .utils import clean_column_headings
1818

19+
from astropy.utils.decorators import deprecated_renamed_argument
20+
1921
__all__ = ['Splatalogue', 'SplatalogueClass']
2022

2123
# example query of SPLATALOGUE directly:
@@ -76,6 +78,7 @@ def set_default_options(self, **kwargs):
7678
"""
7779
self.data.update(self._parse_kwargs(**kwargs))
7880

81+
@deprecated_renamed_argument("restr", "species_regex", since="0.4.7")
7982
def get_species_ids(self, species_regex=None, *, reflags=0, recache=False):
8083
"""
8184
Get a dictionary of "species" IDs, where species refers to the molecule

0 commit comments

Comments
 (0)