Skip to content

Commit 814bbef

Browse files
committed
fix a deprecation error about warnings and the column names list
1 parent a5da0d0 commit 814bbef

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

astroquery/alma/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ def stage_data(self, uids):
240240
log.debug("First response URL: {0}".format(response.url))
241241
if response.status_code == 405:
242242
if hasattr(self,'_last_successful_staging_log'):
243-
log.warn("Error 405 received. If you have previously staged "
244-
"the same UIDs, the result returned is probably "
245-
"correct, otherwise you may need to create a fresh "
246-
"astroquery.Alma instance.")
243+
log.warning("Error 405 received. If you have previously staged "
244+
"the same UIDs, the result returned is probably "
245+
"correct, otherwise you may need to create a fresh "
246+
"astroquery.Alma instance.")
247247
return self._last_successful_staging_log['result']
248248
else:
249249
raise HTTPError("Received an error 405: this may indicate you "

astroquery/alma/tests/test_alma_remote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
from .. import Alma
1313

14-
all_colnames = ['Project code', 'Source name', 'RA', 'Dec', 'Band',
14+
all_colnames = {'Project code', 'Source name', 'RA', 'Dec', 'Band',
1515
'Frequency resolution', 'Integration', 'Release date',
1616
'Frequency support', 'Velocity resolution', 'Pol products',
1717
'Observation date', 'PI name', 'PWV', 'Member ous id',
1818
'Asdm uid', 'Project title', 'Project type', 'Scan intent',
1919
'Spatial resolution', 'Largest angular scale', 'QA0 Status',
20-
'QA2 Status', 'Project abstract']
20+
'QA2 Status', 'Project abstract', 'Group ous id', 'Pub'}
2121

2222

2323
@remote_data

0 commit comments

Comments
 (0)