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

flux.Container.__getitem__ doesn't support list of flavors #349

Open
Sheshuk opened this issue Jul 27, 2024 · 0 comments
Open

flux.Container.__getitem__ doesn't support list of flavors #349

Sheshuk opened this issue Jul 27, 2024 · 0 comments
Assignees
Labels
bug Something isn't working minor Low priority

Comments

@Sheshuk
Copy link
Contributor

Sheshuk commented Jul 27, 2024

The flux container currently supports indexing:

flux['NU_E']

returns a new container, with only specified flavor.

But if you try to access several flavors in a list:

flux[['NU_E','NU_E_BAR']]

it fails.

This is annoying behaviour, as it prevents the user from summing over all neutrinos or antineutrinos etc.

@Sheshuk Sheshuk added the bug Something isn't working label Jul 27, 2024
@Sheshuk Sheshuk self-assigned this Jul 27, 2024
@sybenzvi sybenzvi added the minor Low priority label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor Low priority
Projects
None yet
Development

No branches or pull requests

2 participants