Skip to content

Commit 1505387

Browse files
committed
Bugfix: payload keyword 'version' should be 'data_version'. Added option to get all versions, with 'vall' as version input.
1 parent 2aae04f commit 1505387

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

astroquery/splatalogue/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SplatalogueClass(BaseQuery):
2727
QUERY_URL = conf.query_url
2828
TIMEOUT = conf.timeout
2929
LINES_LIMIT = conf.lines_limit
30-
versions = ('v1.0', 'v2.0')
30+
versions = ('v1.0', 'v2.0', 'vall')
3131
# global constant, not user-configurable
3232
ALL_LINE_LISTS = ('Lovas', 'SLAIM', 'JPL', 'CDMS', 'ToyoMA', 'OSU',
3333
'Recomb', 'Lisa', 'RFI')
@@ -170,7 +170,7 @@ def _parse_kwargs(self, min_frequency=None, max_frequency=None,
170170
The type of intensity on which to place a lower limit
171171
transition : str
172172
e.g. 1-0
173-
version : ``'v1.0'`` or ``'v2.0'``
173+
version : ``'v1.0'`` or ``'v2.0'`` or ``'vall'``
174174
Data version
175175
exclude : list
176176
Types of lines to exclude. Default is:
@@ -274,7 +274,7 @@ def _parse_kwargs(self, min_frequency=None, max_frequency=None,
274274
payload['tran'] = transition
275275

276276
if version in self.versions:
277-
payload['version'] = version
277+
payload['data_version'] = version
278278
elif version is not None:
279279
raise ValueError("Invalid version specified. Allowed versions are {vers}".format(vers=str(self.versions)))
280280

0 commit comments

Comments
 (0)