Skip to content

Commit

Permalink
Merge pull request #1151 from Anselmoo/feature/security-fix
Browse files Browse the repository at this point in the history
Feature/security-fix
  • Loading branch information
Anselmoo authored Jan 29, 2024
2 parents 70fdb0e + 1ce0e86 commit dde3fa9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions spectrafit/test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class TestNotSupported:
df = pd.DataFrame(
{
"energy": np.arange(10),
"intensity": np.random.random_sample((10,)),
"intensity": np.random.default_rng(42).standard_normal((10,)),
}
)

Expand Down Expand Up @@ -639,10 +639,7 @@ def test_all_model_global_fail(self, random_df: pd.DataFrame) -> None:
}

with pytest.raises(KeyError) as pytest_wrapped_e:
_ = SolverModels(
df=df, args=args
)().will_exit_somewhere_down_the_stack() # type: ignore

SolverModels(df=df, args=args)()
assert pytest_wrapped_e.type == KeyError
assert (
pytest_wrapped_e.value.args[0]
Expand Down
2 changes: 1 addition & 1 deletion vendor/lmfit-py
Submodule lmfit-py updated 1 files
+43 −4 lmfit/confidence.py

0 comments on commit dde3fa9

Please sign in to comment.