Skip to content

Commit

Permalink
Merge pull request #9 from bessagroup/pr/1.5.2
Browse files Browse the repository at this point in the history
Pr/1.5.2
  • Loading branch information
mpvanderschelling authored May 17, 2024
2 parents bc76741 + 8d187c1 commit 240cb57
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.1
1.5.2
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
project = 'f3dasm_optimize'
author = 'Martin van der Schelling'
copyright = '2023, Martin van der Schelling'
version = '1.5.1'
release = '1.5.1'
version = '1.5.2'
release = '1.5.2'

# -- General configuration ----------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ pygmo; platform_system == "Linux"
nevergrad
evosax
optuna
optax
optax==0.1.7
3 changes: 2 additions & 1 deletion src/f3dasm_optimize/_src/_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
class Domain(Protocol):
"""Protocol class for the domain"""

def get_continuous_parameters(self):
@property
def continuous(self):
...


Expand Down
6 changes: 2 additions & 4 deletions src/f3dasm_optimize/_src/adapters/pygmo_implementations.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,9 @@ def get_bounds(self) -> Tuple[List[float], List[float]]:
"""
return (
[parameter.lower_bound
for parameter in self.domain.get_continuous_parameters(
).values()],
for parameter in self.domain.continuous.space.values()],
[parameter.upper_bound
for parameter in self.domain.get_continuous_parameters(
).values()],
for parameter in self.domain.continuous.space.values()],
)


Expand Down

0 comments on commit 240cb57

Please sign in to comment.