Skip to content

Commit

Permalink
chore: reduce cross section table size
Browse files Browse the repository at this point in the history
  • Loading branch information
wcxve committed May 24, 2024
1 parent e205a05 commit 24b1994
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/elisa/models/tables/generate_xsect_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_wabs_cross_sections(energy: np.ndarray) -> np.ndarray:
file.create_dataset(
name='energy',
shape=egrid.shape,
dtype=np.float64,
dtype=np.float32,
data=egrid,
)

Expand All @@ -115,21 +115,21 @@ def get_wabs_cross_sections(energy: np.ndarray) -> np.ndarray:
file.create_dataset(
f'phabs/{xsect}/{abund}',
shape=egrid.shape,
dtype=np.float64,
dtype=np.float32,
data=phabs_xsect[(xsect, abund)],
)

for abund in abund_list:
file.create_dataset(
f'tbabs/vern/{abund}',
shape=egrid.shape,
dtype=np.float64,
dtype=np.float32,
data=tbabs_xsect[abund],
)

file.create_dataset(
'wabs/wabs/aneb',
shape=egrid.shape,
dtype=np.float64,
dtype=np.float32,
data=wabs_xsect,
)
Binary file modified src/elisa/models/tables/xsect.hdf5
Binary file not shown.

0 comments on commit 24b1994

Please sign in to comment.