Skip to content

Commit c0bc3af

Browse files
committed
add zmet and afeindx to tests of the parameter checking.
1 parent f44d3d5 commit c0bc3af

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎tests/tests.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ def test_param_checks(pop_and_params):
9191
pop.params["sf_start"] = 0.1
9292
w, s = pop.get_spectrum(tage=pop.params["tage"])
9393

94+
pop.params["zmet"] = 100
95+
with pytest.raises(AssertionError):
96+
w, s = pop.get_spectrum(tage=pop.params["tage"])
97+
pop.params["zmet"] = 1
98+
w, s = pop.get_spectrum(tage=pop.params["tage"])
99+
100+
pop.params["afeindx"] = pop.n_afe + 1
101+
with pytest.raises(AssertionError):
102+
w, s = pop.get_spectrum(tage=pop.params["tage"])
103+
pop.params["afeindx"] = 1
104+
w, s = pop.get_spectrum(tage=pop.params["tage"])
105+
94106

95107
def test_smooth_lsf(pop_and_params):
96108
# recomputes SSPs

0 commit comments

Comments
 (0)