Skip to content

Commit 76af875

Browse files
splatalogue-issue-1572
1 parent ab636bc commit 76af875

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

astroquery/splatalogue/load_species_table.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ def species_lookuptable(filename='splat-species.json', recache=False):
6666
# check to see if the file exists; if not, we run the
6767
# scraping routine
6868
if recache or not os.path.isfile(file_cache):
69-
J = get_json_species_ids(filename)
69+
species = get_json_species_ids(filename)
7070
else:
7171
with open(data_path(filename), 'r') as f:
72-
J = json.load(f)
73-
lookuptable = SpeciesLookuptable(dict((v, k) for d in J.values()
72+
species = json.load(f)
73+
lookuptable = SpeciesLookuptable(dict((v, k) for d in species.values()
7474
for k, v in d.items()))
7575

7676
return lookuptable

0 commit comments

Comments
 (0)