Skip to content

Commit 535da2d

Browse files
committed
fix the exclusion rule; the last variant was nonsense
1 parent e90c37b commit 535da2d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

astroquery/splatalogue/core.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,13 @@ def _parse_kwargs(self, min_frequency=None, max_frequency=None,
293293
raise ValueError("Invalid version specified. Allowed versions "
294294
"are {vers}".format(vers=str(self.versions)))
295295

296-
if exclude is not None:
296+
if exclude == 'none':
297+
for e in ('potential', 'atmospheric', 'probable', 'known'):
298+
if 'no_'+e in payload:
299+
del payload['no_' + e]
300+
elif exclude is not None:
297301
for e in exclude:
298302
payload['no_' + e] = 'no_' + e
299-
elif exclude == 'none':
300-
for e in exclude:
301-
if 'no_e'+e in payload:
302-
del payload['no_' + e]
303303

304304
if only_NRAO_recommended:
305305
payload['include_only_nrao'] = 'include_only_nrao'

0 commit comments

Comments
 (0)