Commit 5dd84a69 authored by Daniel Boeckenhoff's avatar Daniel Boeckenhoff Committed by Daniel Boeckenhoff
Browse files

numpy vs 1.11.3 compatibility

parent 7fd40859
......@@ -1550,7 +1550,7 @@ class TensorFields(Tensors):
Masking
>>> masked = scalar_field[[True, False, True]]
>>> masked = scalar_field[np.array([True, False, True])]
>>> assert masked.equal([[0, 0, 0], [0, -1, 0]])
>>> assert masked.fields[0].equal([42, 10.5])
>>> assert masked.fields[1].equal([1, 3])
......@@ -1817,7 +1817,7 @@ class TensorMaps(TensorFields):
Masking
>>> masked = mesh[[True, False, True, True, True]]
>>> masked = mesh[np.array([True, False, True, True, True])]
>>> assert masked.equal([[0, 0, 0], [0, -1, 0], [1, 1, 1], [-1, -1, -1]])
>>> assert masked.fields[0].equal([42, 10.5, 1, 1])
>>> assert masked.fields[1].equal([1, 3, 3, 3])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment