Skip to content

Commit

Permalink
simplify testing clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Saves committed Aug 21, 2023
1 parent e2d9555 commit 4d72c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smt/utils/design_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,9 @@ def _sample_valid_x(self, n: int, **kwargs) -> Tuple[np.ndarray, np.ndarray]:

# Simplified implementation: sample design vectors in unfolded space
x_limits_unfolded = self.get_unfolded_num_bounds()
if "random_state" in kwargs.keys():
if "random_state" in kwargs:
self.seed = kwargs["random_state"]
if "use_new_sampler" in kwargs.keys() and kwargs["use_new_sampler"]:
if kwargs.get("reset_sampler"):
kwargs.pop("use_new_sampler", None)
if self.use_new_sampler:
self.sampler = LHS(xlimits=x_limits_unfolded, **kwargs)
Expand Down

0 comments on commit 4d72c5e

Please sign in to comment.