Skip to content

Commit

Permalink
bug: keys() instead of keys
Browse files Browse the repository at this point in the history
  • Loading branch information
younesStrittmatter committed Aug 17, 2023
1 parent 4a64c53 commit f940253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/equation_tree/util/priors.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _normalize(priors):
warnings.warn(
f"Sum of priors {priors} is less then 0. Falling back to default priors."
)
n = len(priors.keys)
n = len(priors.keys())
default_prior = 1 / n
return {el: default_prior for el in priors.keys()}
return {el: priors[el] / total for el in priors.keys()}
Expand Down

0 comments on commit f940253

Please sign in to comment.