Skip to content

Commit 63e326e

Browse files
committed
I was using the API wrong; there is a file_key I was supposed to be
using (only for MOUSes)
1 parent 88d552e commit 63e326e

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

astroquery/alma/core.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -908,17 +908,10 @@ def _json_summary_to_table(self, data, base_url):
908908
# https://almascience.eso.org/dataPortal/requests/keflavich/946895898/ALMA/
909909
# 2013.1.00308.S_uid___A001_X196_X93_001_of_001.tar/2013.1.00308.S_uid___A001_X196_X93_001_of_001.tar
910910
# uid___A002_X9ee74a_X26f0/2013.1.00308.S_uid___A002_X9ee74a_X26f0.asdm.sdm.tar
911-
if 'asdm' in entry['file_name']:
912-
uid = entry['de_name'][5:].replace("/","_").replace(":","_")
913-
url = os.path.join(base_url,
914-
uid,
915-
entry['file_name'],
916-
)
917-
else:
918-
url = os.path.join(base_url,
919-
entry['file_name'],
920-
entry['file_name'],
921-
)
911+
url = os.path.join(base_url,
912+
entry['file_key'],
913+
entry['file_name'],
914+
)
922915
columns['URL'].append(url)
923916

924917
columns['size'] = u.Quantity(columns['size'], u.Gbyte)

0 commit comments

Comments
 (0)