Skip to content

Commit

Permalink
handle transform removal in RV init
Browse files Browse the repository at this point in the history
  • Loading branch information
hvasbath committed Aug 25, 2024
1 parent c70b276 commit b334d34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion beat/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ def init_uniform_random(kwargs):
except TypeError:
kwargs.pop("name")
kwargs.pop("initval")
kwargs.pop("transform")
try:
kwargs.pop("transform")
except KeyError:
kwargs.pop("default_transform")

dist = Uniform.dist(**kwargs)

return dist
Expand Down

0 comments on commit b334d34

Please sign in to comment.