Skip to content

Commit

Permalink
assert that the value of self.mu is integral instead of checking the …
Browse files Browse the repository at this point in the history
…type
  • Loading branch information
nchristensen committed Jan 5, 2023
1 parent 1a89bea commit 5113334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ConfigSpace/hyperparameters.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ cdef class NormalIntegerHyperparameter(IntegerHyperparameter):
self.mu = mu
self.sigma = sigma
if self.sigma == 0:
assert isinstance(self.mu, int)
assert int(self.mu) == self.mu

if default_value is not None:
default_value = self.check_int(default_value, self.name)
Expand Down

0 comments on commit 5113334

Please sign in to comment.