Skip to content

TypeError when passing list of values as sigma #5745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ricardoV94 opened this issue May 5, 2022 · 0 comments · Fixed by #5747
Closed

TypeError when passing list of values as sigma #5745

ricardoV94 opened this issue May 5, 2022 · 0 comments · Fixed by #5747

Comments

@ricardoV94
Copy link
Member

get_tau_sigma used in many of our distributions fails with a TypeError when passing a list of values. We should probably fix this for better user experience:

import pymc as pm:
pm.Normal.dist(sigma=[1, 2])
TypeError: unsupported operand type(s) for ** or pow(): 'list' and 'float'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants