Skip to content

Commit

Permalink
apparently made some changes to higal's reader, but I'm not sure they
Browse files Browse the repository at this point in the history
work; this is a placeholder commit
  • Loading branch information
keflavich committed Jul 21, 2021
1 parent 723146a commit 51f5838
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions astroquery/herschel/higal/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,15 @@ def get_image_list(self, coordinates, radius, get_query_payload=False,
cache=False,
)
base_response.raise_for_status()
jdict = base_response.json()['aaData']

lines = base_response.text.split("\n")
dataline = [line for line in lines if 'fitsHeaders = JSON.parse(\'' in line][0]
#lines = base_response.text.split("\n")
#dataline = [line for line in lines if 'fitsHeaders = JSON.parse(\'' in line][0]

json_data = dataline.split('fitsHeaders = JSON.parse(\'')[1].strip('\');')
#json_data = dataline.split('fitsHeaders = JSON.parse(\'')[1].strip('\');')

#jdict = json.loads(json_data)

jdict = json.loads(json_data)
filenames = {wlname: jdict[str(wlnum)]['FILENAME']
for wlname, wlnum in self.HIGAL_CATALOGS.items()
if str(wlnum) in jdict}
Expand Down

0 comments on commit 51f5838

Please sign in to comment.