Skip to content

Commit 4f25759

Browse files
committed
Actually make units possibly not iterable
1 parent ca00cca commit 4f25759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_units.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __getitem__(self, item):
3434
if iterable(self.magnitude):
3535
return Quantity(self.magnitude[item], self.units)
3636
else:
37-
return Quantity(self.magnitude[item], self.units)
37+
return Quantity(self.magnitude, self.units)
3838

3939
def __array__(self):
4040
return np.asarray(self.magnitude)

0 commit comments

Comments
 (0)