Skip to content
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

Better error message for not specifying any placement kwarg #1

Open
macks22 opened this issue Aug 2, 2019 · 0 comments
Open

Better error message for not specifying any placement kwarg #1

macks22 opened this issue Aug 2, 2019 · 0 comments

Comments

@macks22
Copy link
Owner

macks22 commented Aug 2, 2019

If no placement kwarg is specified, the error message is confusing, e.g. this code:

pgm = (PGM()
    .with_nodes(
        Param(r"$B_2$"))
).build()
pgm.render();

produces this error message:

ValueError: Param__init__ can handle at most one of the placement kwargs (('xy', 'above', 'above_l', 'above_r', 'below', 'below_l', 'below_r', 'left_of', 'right_of')) but was given 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant