Skip to content

Commit

Permalink
Fix numpy DeprecationWarnings (#1076)
Browse files Browse the repository at this point in the history
Closes #1074
  • Loading branch information
dweindl authored Jun 6, 2023
1 parent 7b27ccd commit 7b9128b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypesto/problem/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def normalize(self) -> None:

def _check_x_guesses(self):
"""Check whether the supplied x_guesses adhere to the bounds."""
if self.x_guesses == np.zeros((0, self.dim_full)):
if self.x_guesses.size == 0:
return
adheres_ub = self.x_guesses < self.ub
adheres_lb = self.x_guesses < self.lb
Expand Down

0 comments on commit 7b9128b

Please sign in to comment.