Skip to content

Commit

Permalink
fix: update changelog, fix errant misparameterisation assert
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyPlanden committed May 31, 2024
1 parent 48488d0 commit 0d58d08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

## Bug Fixes

- [#333](https://github.com/pybop-team/PyBOP/issues/333) - Restores benchmarks, relaxes CI schedule for benchmarks and scheduled tests.
- [#337](https://github.com/pybop-team/PyBOP/issues/337) - Restores benchmarks, relaxes CI schedule for benchmarks and scheduled tests.
- [#231](https://github.com/pybop-team/PyBOP/issues/231) - Allows passing of keyword arguments to PyBaMM models and disables build on initialisation.
- [#321](https://github.com/pybop-team/PyBOP/pull/321) - Improves `integration/test_spm_parameterisation.py` stability, adds flakly pytest plugin, and `test_thevenin_parameterisation.py` integration test.
- [#330](https://github.com/pybop-team/PyBOP/issues/330) - Fixes implementation of default plotting options.
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/test_spm_parameterisations.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,14 @@ def test_model_misparameterisation(self, parameters, model, init_soc):
optimiser = pybop.CMAES

# Build the optimisation problem
parameterisation = optimiser(cost=cost)
optim = optimiser(cost=cost)
initial_cost = optim.cost(cost.x0)

# Run the optimisation problem
x, final_cost = parameterisation.run()
x, final_cost = optim.run()

# Assertion for final_cost
with np.testing.assert_raises(AssertionError):
np.testing.assert_allclose(final_cost, 0, atol=1e-2)
assert initial_cost > final_cost

# Assertion for x
with np.testing.assert_raises(AssertionError):
Expand Down

0 comments on commit 0d58d08

Please sign in to comment.