Skip to content

Commit

Permalink
fix a minor issue with lut
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed May 13, 2016
1 parent 0e1f35b commit dfff154
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions astroquery/vamdc/load_species_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ def species_lookuptable():
result = request.getspecies()
molecules = result.data['Molecules']

lookuptable = SpeciesLookuptable({molecules[key].OrdinaryStructuralFormula:
molecules[key].VAMDCSpeciesID
for key in molecules})
lutdict = {"{0} {1}".format(molecules[key].ChemicalName,
molecules[key].OrdinaryStructuralFormula):
molecules[key].VAMDCSpeciesID
for key in molecules}
lookuptable = SpeciesLookuptable(lutdict)

return lookuptable

0 comments on commit dfff154

Please sign in to comment.