Skip to content

Commit f43d10f

Browse files
committed
download products
1 parent 925393e commit f43d10f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

astroquery/mast/missions.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,16 @@ def _parse_result(self, response, *, verbose=False): # Used by the async_to_syn
111111
if isinstance(response, list): # multiple async responses from batching
112112
combined_products = []
113113
for resp in response:
114-
combined_products.extend(resp.json().get('products', []))
114+
if self.mission == 'roman':
115+
combined_products.extend(resp.json().get('products', [])[0])
116+
else:
117+
combined_products.extend(resp.json().get('products', []))
115118
return Table(combined_products)
116119

117-
results = Table(response.json()['products']) # single async response
120+
if self.mission == 'roman':
121+
results = Table(response.json()['products'][0]) # single async response
122+
else:
123+
results = Table(response.json()['products'])
118124

119125
return results
120126

0 commit comments

Comments
 (0)