scipp / scippnexus

h5py-like utility for NeXus files with seamless scipp integration
https://scipp.github.io/scippnexus/
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

Use list instead of tuple of classes in __getitem__ #56

Closed SimonHeybrock closed 2 years ago

SimonHeybrock commented 2 years ago

A list is more consistent with other Python behavior. For example, in NumPy a tuple is used for multi-dim slicing, but a list can select multiple indices along a single dimension: a[[2,5]].