Skip to content

Commit

Permalink
Merge branch 'deprecation_fix' of github.com:Delaunay/orion into depr…
Browse files Browse the repository at this point in the history
…ecation_fix
  • Loading branch information
Pierre Delaunay committed Dec 5, 2022
2 parents 5c32bc8 + 8130ba8 commit ad8af32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/orion/algo/space/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ def assert_contains(self, trial):
Raises
------
ValueError is the trial has parameters that are not contained by the space.
ValueError if the trial has parameters that are not contained by the space.
"""
if isinstance(trial, str):
Expand Down
6 changes: 1 addition & 5 deletions src/orion/core/worker/algo_wrappers/space_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,4 @@ def reverse_transform(self, trial: Trial) -> Trial:

def _verify_trial(self, trial: Trial, space: Space | None = None) -> None:
space = space or self.space
if trial not in space:
raise ValueError(
f"Trial {trial.id} not contained in space:"
f"\nParams: {trial.params}\nSpace: {space}"
)
space.assert_contains(trial)

0 comments on commit ad8af32

Please sign in to comment.