Skip to content
Snippets Groups Projects
Commit 4404d709 authored by Hahn, Steven's avatar Hahn, Steven
Browse files

Ignore last bin size. Rebin may leave it different.

parent 5edd2222
No related branches found
No related tags found
No related merge requests found
......@@ -202,12 +202,12 @@ def use_imshow(ws):
x = ws.dataX(0)
difference = np.diff(x)
if not np.all(np.isclose(difference, difference[0])):
if not np.all(np.isclose(difference[:-1], difference[0])):
return False
y = ws.getAxis(1).extractValues()
difference = np.diff(y)
if not np.all(np.isclose(difference, difference[0])):
if not np.all(np.isclose(difference[:-1], difference[0])):
return False
return True
......
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