Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca00cca commit 4f25759Copy full SHA for 4f25759
1 file changed
lib/matplotlib/tests/test_units.py
@@ -34,7 +34,7 @@ def __getitem__(self, item):
34
if iterable(self.magnitude):
35
return Quantity(self.magnitude[item], self.units)
36
else:
37
- return Quantity(self.magnitude[item], self.units)
+ return Quantity(self.magnitude, self.units)
38
39
def __array__(self):
40
return np.asarray(self.magnitude)
0 commit comments