Skip to content

Commit

Permalink
exclusions type error
Browse files Browse the repository at this point in the history
  • Loading branch information
dilpath committed Dec 1, 2023
1 parent 36b495d commit 253cbce
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions petab_select/candidate_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def update_after_calibration(
logging.info("Switching method")
self.switch_method(calibrated_models=calibrated_models)
self.switch_inner_candidate_space(
calibrated_models=calibrated_models,
exclusions=list(calibrated_models),
)
logging.info(
"Method switched to ", self.inner_candidate_space.method
Expand Down Expand Up @@ -1021,18 +1021,22 @@ def update_method(self, method: Method):

def switch_inner_candidate_space(
self,
calibrated_models: Dict[str, Model],
exclusions: List[str],
):
"""Switch ``self.inner_candidate_space`` to the candidate space of
the current self.method."""
"""Switch the inner candidate space to match the current method.
Args:
exclusions:
Hashes of excluded models.
"""

# if self.method != Method.MOST_DISTANT:
self.inner_candidate_space = self.inner_candidate_spaces[self.method]
# reset the next inner candidate space with the current history of all
# calibrated models
self.inner_candidate_space.reset(
predecessor_model=self.predecessor_model,
exclusions=calibrated_models,
exclusions=exclusions,
)

def jump_to_most_distant(
Expand Down

0 comments on commit 253cbce

Please sign in to comment.