Skip to content

Commit

Permalink
pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
linznedd committed Dec 6, 2024
1 parent 028a2c0 commit 2d4a850
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bofire/strategies/doe_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@

import bofire.data_models.strategies.api as data_models
from bofire.data_models.features.api import CategoricalInput, Input
from bofire.data_models.strategies.doe import AnyDoEOptimalityCriterion
from bofire.data_models.strategies.doe import (
AnyDoEOptimalityCriterion,
DoEOptimalityCriterion,
)
from bofire.strategies.doe.branch_and_bound import (
find_local_max_ipopt_BaB,
find_local_max_ipopt_exhaustive,
Expand Down Expand Up @@ -39,7 +42,7 @@ def __init__(

@property
def formula(self):
if isinstance(self.data_model.criterion, AnyDoEOptimalityCriterion):
if isinstance(self.data_model.criterion, DoEOptimalityCriterion):
return get_formula_from_string(
self.data_model.criterion.formula, self.data_model.domain
)
Expand Down

0 comments on commit 2d4a850

Please sign in to comment.