Skip to content

Commit

Permalink
fixed _FloatOrConst
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Jul 25, 2024
1 parent 3b1f6e9 commit ac9b61c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/mochi/bedrock/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def _FloatOrConst(name: str, bounds: float|tuple[float, float], *,
c = Constant(name=name, value=bounds[0], meta=meta)
setattr(c, "upper", bounds[0])
setattr(c, "lower", bounds[0])
return c
else:
return Float(name=name, bounds=bounds, distribution=distribution,
default=default, log=log, meta=meta)
Expand Down

0 comments on commit ac9b61c

Please sign in to comment.