Skip to content
Snippets Groups Projects
Commit c0f3c687 authored by WHITFIELDRE email's avatar WHITFIELDRE email
Browse files

Fix Boolean indexing for numpy 1.13

Boolean indexes must match the dimension of the axis that they index. See https://docs.scipy.org/doc/numpy-1.13.0/release.html#boolean-indexing-changes
parent 9169b93b
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ class ConvertToWavelengthTest(unittest.TestCase):
def cropped_x_range(cls, ws, index):
det_ws_x = ws.readX(index)
mask = ws.readY(index) != 0 # CropWorkspace will only zero out y values! so we need to translate those to an x range
cropped_x = det_ws_x[mask]
cropped_x = det_ws_x[:-1][mask]
return cropped_x[0], cropped_x[-1]
def test_convert(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment