Skip to content

Commit 8c24bb6

Browse files
committed
Remove asserts from code
1 parent 41864d4 commit 8c24bb6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

astroquery/splatalogue/load_species_table.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@ def species_lookuptable(*, filename='splat-species.json', recache=False):
6767
# scraping routine
6868
if recache or not os.path.isfile(file_cache):
6969
species = get_json_species_ids(outfile=filename)
70-
assert isinstance(species, dict)
7170
else:
7271
with open(data_path(filename), 'r') as f:
7372
species = json.load(f)
74-
assert isinstance(species, dict)
73+
7574
lookuptable = SpeciesLookuptable(dict((v, k) for d in species.values()
7675
for k, v in d.items()))
7776

0 commit comments

Comments
 (0)