Skip to content

Commit

Permalink
add hyd_n_phixs_stop2start_energy_ratio and hyd_n_phixs_num_points in…
Browse files Browse the repository at this point in the history
… test function test_get_hydrogenic_n_phixs_table
  • Loading branch information
ymatsumu committed Aug 17, 2023
1 parent 3e0331a commit f27e094
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "carsus/io/tests/carsus-data-cmfgen"]
path = carsus/io/tests/carsus-data-cmfgen
url = https://github.com/tardis-sn/carsus-data-cmfgen
1 change: 1 addition & 0 deletions carsus/io/tests/carsus-data-cmfgen
Submodule carsus-data-cmfgen added at 001be3
20 changes: 16 additions & 4 deletions carsus/io/tests/test_cmfgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
def si1_reader():
return CMFGENReader.from_config(
"Si 0-1",
atomic_path="/tmp/atomic",
atomic_path="tmp/atomic",
collisions=True,
cross_sections=True,
ionization_energies=True,
Expand Down Expand Up @@ -169,15 +169,27 @@ def test_get_seaton_phixs_table(threshold_energy_ryd, fit_coeff_list):


@pytest.mark.array_compare
@pytest.mark.parametrize("hyd_gaunt_energy_grid_ryd", [{1: list(range(1, 3))}])
@pytest.mark.parametrize("hyd_gaunt_energy_grid_ryd", [{1: list(range(1, 4))}])
@pytest.mark.parametrize("hyd_gaunt_factor", [{1: list(range(3, 6))}])
@pytest.mark.parametrize("threshold_energy_ryd", [0.5])
@pytest.mark.parametrize("n", [1])
@pytest.mark.parametrize("hyd_n_phixs_stop2start_energy_ratio", [25])
@pytest.mark.parametrize("hyd_n_phixs_num_points", [200])
def test_get_hydrogenic_n_phixs_table(
hyd_gaunt_energy_grid_ryd, hyd_gaunt_factor, threshold_energy_ryd, n
hyd_gaunt_energy_grid_ryd,
hyd_gaunt_factor,
threshold_energy_ryd,
n,
hyd_n_phixs_stop2start_energy_ratio,
hyd_n_phixs_num_points,
):
hydrogenic_n_phixs_table = get_hydrogenic_n_phixs_table(
hyd_gaunt_energy_grid_ryd, hyd_gaunt_factor, threshold_energy_ryd, n
hyd_gaunt_energy_grid_ryd,
hyd_gaunt_factor,
threshold_energy_ryd,
n,
hyd_n_phixs_stop2start_energy_ratio,
hyd_n_phixs_num_points,
)
return hydrogenic_n_phixs_table

Expand Down

0 comments on commit f27e094

Please sign in to comment.