[Bug]: Prior sampling outside of bounds causes runtime error
Closed this issue · 0 comments
BradyPlanden commented
Python Version
N/A
Describe the bug
It is possible to sample the prior outside of the parameter bounds, which causes a runtime error for nlopt during optimisation.
Steps to reproduce the behaviour
Running something like this will cause an nlopt error:
pybop.Parameter(
"Negative electrode active material volume fraction",
prior=pybop.Gaussian(0.75, 0.05),
bounds=[0.73, 0.77],
)
Relevant log output
No response