From dfff1548bb164884934fefa1089cfc6699b2ce5d Mon Sep 17 00:00:00 2001 From: "Adam Ginsburg (keflavich)" Date: Thu, 17 Mar 2016 16:07:31 +0100 Subject: [PATCH] fix a minor issue with lut --- astroquery/vamdc/load_species_table.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/astroquery/vamdc/load_species_table.py b/astroquery/vamdc/load_species_table.py index e48cfebb08..673d9d4a0d 100644 --- a/astroquery/vamdc/load_species_table.py +++ b/astroquery/vamdc/load_species_table.py @@ -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