Skip to content

Commit

Permalink
undo change to util
Browse files Browse the repository at this point in the history
  • Loading branch information
jwreep committed Dec 17, 2024
1 parent f499b79 commit 43f43c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fiasco/tests/test_ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def test_ionization_fraction_setter(ion):
assert u.allclose(ion.ionization_fraction, 0.0)
ion.ionization_fraction = 0.1
assert u.allclose(ion.ionization_fraction, 0.1)

def test_formation_temperature(ion):
assert ion.formation_temperature == ion.temperature[np.argmax(ion.ionization_fraction)]

Expand Down
3 changes: 1 addition & 2 deletions fiasco/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ def walk_sub_dir(subdir):

return subdir_files

non_ion_subdirs = ['abundance', 'ip', 'continuum', 'dem']
non_ion_subdirs = ['abundance', 'ip', 'ioneq', 'continuum', 'dem']
all_files = {f'{sd}_files': walk_sub_dir(sd) for sd in non_ion_subdirs}
all_files['ionization_files'] = walk_sub_dir('ioneq')
all_files['ion_files'] = ion_files

return all_files
Expand Down

0 comments on commit 43f43c0

Please sign in to comment.