Skip to content

Index should return elements as Quantity, not Index

Duncan Macleod requested to merge github/fork/duncanmmacleod/Index-getitem into develop

This PR patches Index.__getitem__ to return scalar items as a Quantity, rather than a 0-dimensional Index, mainly because that doesn't really make sense.

A test case for the Index object has also been added.

Merge request reports