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 305c062 commit e5bdf20Copy full SHA for e5bdf20
src/QuantSI/tests/test_units.py
@@ -944,16 +944,6 @@ def test_special_case_numpy_functions():
944
with pytest.raises(TypeError):
945
np.where(cond, ar1, ar1, ar2)
946
947
- # Check setasflat (for numpy < 1.7)
948
- if hasattr(Quantity, "setasflat"):
949
- a = np.arange(10) * mV
950
- b = np.ones(10).reshape(5, 2) * volt
951
- c = np.ones(10).reshape(5, 2) * second
952
- with pytest.raises(DimensionMismatchError):
953
- a.setasflat(c)
954
- a.setasflat(b)
955
- assert_equal(a.flatten(), b.flatten())
956
-
957
# Check cumprod
958
a = np.arange(1, 10) * mV / mV
959
assert_equal(a.cumprod(), np.asarray(a).cumprod())
0 commit comments