Skip to content

Commit

Permalink
Use PlatypusConfig.default_variator (#369)
Browse files Browse the repository at this point in the history
Version `1.3.0` moved `default_variator` from a standalone method to part of `PlatypusConfig`.  Thus, this updates the method reference and puts a minimum version on the dependency.
  • Loading branch information
dhadka authored Sep 9, 2024
1 parent 561fda7 commit 59cad47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ema_workbench/em_framework/outputspace_exploration.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
RandomGenerator,
Dominance,
AbstractGeneticAlgorithm,
default_variator,
AdaptiveTimeContinuation,
GAOperator,
SBX,
Expand All @@ -38,6 +37,7 @@
PCX,
UNDX,
Multimethod,
PlatypusConfig,
)


Expand Down Expand Up @@ -186,7 +186,7 @@ def initialize(self):
self.archive += self.population

if self.variator is None:
self.variator = default_variator(self.problem)
self.variator = PlatypusConfig.default_variator(self.problem)

def iterate(self):
offspring = []
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
"pandas",
"scikit-learn",
"salib>=1.4.6",
"platypus-opt",
"platypus-opt>=1.3.0",
"matplotlib",
"statsmodels",
"seaborn",
Expand Down

0 comments on commit 59cad47

Please sign in to comment.