Skip to content

Commit

Permalink
Merge 733819e into 678309f
Browse files Browse the repository at this point in the history
  • Loading branch information
laudb authored Oct 31, 2017
2 parents 678309f + 733819e commit ad57033
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tardis/plasma/standard_plasmas.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ def assemble_plasma(config, model, atom_data=None):
raise ValueError('No atom_data option found in the configuration.')

logger.info('Reading Atomic Data from %s', atom_data_fname)
atom_data = atomic.AtomData.from_hdf(atom_data_fname)

try:
atom_data = atomic.AtomData.from_hdf(atom_data_fname)
except TypeError as e:
print (e, 'Error might be from the use of an old-format of the atomic database, \n'
'please see https://github.com/tardis-sn/tardis-refdata/tree/master/atom_data'
',for the most recent version.')
raise

atom_data.prepare_atom_data(
model.abundance.index,
Expand Down

0 comments on commit ad57033

Please sign in to comment.