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

Internal error if weights aren't a list #72

Open
BenWeber42 opened this issue Jan 21, 2021 · 0 comments
Open

Internal error if weights aren't a list #72

BenWeber42 opened this issue Jan 21, 2021 · 0 comments
Labels
bug Something isn't working med-prio Medium priority issue/task simple Low in complexity and estimated time small Requires little effort/time

Comments

@BenWeber42
Copy link
Contributor

This snippet will cause an internal error (AttributeError) because dusk always assume that weights will be a list:

@stencil
def test_non_list_weights(a: Field[Edge], b: Field[Vertex]):
    with levels_upward:
        a = sum_over(Edge > Vertex, b, weights=5)

A negative test should be created for that once the testing framework supports negative tests.

@BenWeber42 BenWeber42 added bug Something isn't working med-prio Medium priority issue/task simple Low in complexity and estimated time labels Jan 21, 2021
@BenWeber42 BenWeber42 added the small Requires little effort/time label Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working med-prio Medium priority issue/task simple Low in complexity and estimated time small Requires little effort/time
Projects
None yet
Development

No branches or pull requests

1 participant