Skip to content

Commit

Permalink
Merge branch 'develop' into 307-add-cuckoo-optimiser
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyPlanden authored Jul 5, 2024
2 parents aa94180 + 7a85dd0 commit fa3bd76
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

## Bug Fixes

- [#338](https://github.com/pybop-team/PyBOP/pull/338) - Fixes GaussianLogLikelihood class, adds integration tests, updates non-bounded parameter implementation and bugfix to CMAES construction.
- [#338](https://github.com/pybop-team/PyBOP/pull/338) - Fixes GaussianLogLikelihood class, adds integration tests, updates non-bounded parameter implementation by applying bounds from priors and `boundary_multiplier` argument. Bugfixes to CMAES construction.
- [#339](https://github.com/pybop-team/PyBOP/issues/339) - Updates the calculation of the cyclable lithium capacity in the spme_max_energy example.
- [#387](https://github.com/pybop-team/PyBOP/issues/387) - Adds keys to ParameterSet and updates ECM OCV check.
- [#380](https://github.com/pybop-team/PyBOP/pull/380) - Restore self._boundaries construction for `pybop.PSO`
Expand Down
1 change: 0 additions & 1 deletion pybop/costs/_likelihoods.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class BaseLikelihood(BaseCost):
def __init__(self, problem: BaseProblem):
super(BaseLikelihood, self).__init__(problem)
self.n_time_data = problem.n_time_data
self.n_outputs = self.n_outputs or None


class GaussianLogLikelihoodKnownSigma(BaseLikelihood):
Expand Down
1 change: 1 addition & 0 deletions pybop/parameters/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def set_bounds(self, bounds=None, boundary_multiplier=6):
self.lower_bound = self.prior.mean - boundary_multiplier * self.prior.sigma
self.upper_bound = self.prior.mean + boundary_multiplier * self.prior.sigma
bounds = [self.lower_bound, self.upper_bound]
print("Default bounds applied based on prior distribution.")

self.bounds = bounds

Expand Down

0 comments on commit fa3bd76

Please sign in to comment.