Skip to content

Commit

Permalink
Update valueError Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias authored and glouppe committed May 4, 2021
1 parent 84023d9 commit 8c29916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skopt/space/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ def __init__(self, low, high, prior="uniform", base=10, transform=None,
"or 'float64'"
" got {}".format(self.dtype))
elif isinstance(self.dtype, type) and \
np.issubdtype(type(self.dtype), np.floating):
raise ValueError("dtype must be float, np.float64"
not np.issubdtype(self.dtype, np.floating):
raise ValueError("dtype must be a np.floating subtype"
" got {}".format(self.dtype))

if transform is None:
Expand Down

0 comments on commit 8c29916

Please sign in to comment.