Skip to content

Commit

Permalink
Reinstate the remaining continuum tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xansh committed Jun 21, 2023
1 parent 0256e23 commit 22caa5d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tardis/montecarlo/tests/test_montecarlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,41 @@ def fin():
return compare_data


@pytest.fixture(scope="function")
def expected_ff_emissivity(continuum_compare_data):
emissivities = continuum_compare_data["ff_emissivity"]

def ff_emissivity(t_electron):
emissivity = emissivities[t_electron]
nu_bins = emissivity["nu_bins"].values
emissivity_value = emissivity["emissivity"].dropna().values

return nu_bins, emissivity_value

return ff_emissivity


@pytest.fixture(scope="module")
def ion_edges():
return [
{
"nu": [4.0e14, 4.1e14, 4.2e14, 4.3e14],
"x_sect": [1.0, 0.9, 0.8, 0.7],
"no_of_points": 4,
},
{
"nu": [3.0e14, 3.1e14, 3.2e14, 3.3e14, 3.4e14],
"x_sect": [1.0, 0.9, 0.8, 0.7, 0.6],
"no_of_points": 5,
},
{
"nu": [2.8e14, 3.0e14, 3.2e14, 3.4e14],
"x_sect": [2.0, 1.8, 1.6, 1.4],
"no_of_points": 4,
},
]


"""
Important Tests:
----------------
Expand Down

0 comments on commit 22caa5d

Please sign in to comment.