Skip to content

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

@Sheshuk

Description

@Sheshuk

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingminorLow priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions