Skip to content

Commit

Permalink
Make NNDC Reader optional (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas3156 authored Aug 23, 2023
1 parent 5bdef76 commit 4a3b39e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion carsus/io/output/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,9 @@ def to_hdf(self, fname):
f.put('/macro_atom_data', self.macro_atom_prepared)
f.put('/macro_atom_references',
self.macro_atom_references_prepared)
f.put('/nuclear_decay_rad', self.nndc_reader.decay_data)

if hasattr(self.nndc_reader, 'decay_data'):
f.put('/nuclear_decay_rad', self.nndc_reader.decay_data)

if hasattr(self, 'collisions'):
f.put('/collisions_data', self.collisions_prepared)
Expand Down

0 comments on commit 4a3b39e

Please sign in to comment.