Skip to content

Commit

Permalink
test the existence of the datasets for gaunt factors
Browse files Browse the repository at this point in the history
  • Loading branch information
jwreep committed Sep 21, 2024
1 parent 97c2b19 commit f5c0d53
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fiasco/tests/test_gaunt.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ def ion(hdf5_dbase_root):
def gaunt_factor(hdf5_dbase_root):
return fiasco.GauntFactor(hdf5_dbase_root=hdf5_dbase_root)

@pytest.mark.parametrize(('property'), [('_itoh'), ('_klgfb'), ('_gffint'), ('_gffgu')])
def test_properties_exist(gaunt_factor, property):
assert hasattr(gaunt_factor, property)

#@pytest.mark.requires_dbase_version('>= 9.0.1')
@pytest.mark.parametrize(('property'), [('_itoh_integrated_gaunt'), ('_itoh_integrated_gaunt_nonrel')])
def test_itoh_properties_exist(gaunt_factor, property):
assert hasattr(gaunt_factor, property)

@pytest.mark.parametrize(('ionization_stage', 'zeta'), [
(2, 32.0),
(16, 18.0),
Expand Down

0 comments on commit f5c0d53

Please sign in to comment.