Skip to content

Commit 0bd4177

Browse files
Adjust test case of failing beta calculation scipy>=1.15
Obviously the optimization behavior in scipy>=1.15 changed slightly Signed-off-by: Johannes Mueller <[email protected]>
1 parent 240dd96 commit 0bd4177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/strength/test_parameter_calculations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_compute_beta_success(P_A, expected_beta):
3939
assert np.isclose(beta, expected_beta)
4040

4141

42-
@pytest.mark.parametrize("P_A", [-1,0,1,2])
42+
@pytest.mark.parametrize("P_A", [-1.0, 0.0, 1.01, 2.0])
4343
def test_compute_beta_fails(P_A):
4444

4545
expected_error_message = f"Could not compute the value of beta for P_A={P_A}, " \

0 commit comments

Comments
 (0)