Skip to content
Snippets Groups Projects
Commit d6177a78 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Trying to suppress numpy warnings about floating point indices

parent 29a7f752
No related branches found
No related tags found
No related merge requests found
......@@ -1012,9 +1012,8 @@ def calcExpansion(slices, coverage):
expLow = min((ylo, yLowCover, expLow))
expHigh = max((yhi, yHighCover, expHigh))
expansion[dimy][0] = expLow
expansion[dimy][1] = expHigh
expansion[dimy][0] = int(expLow)
expansion[dimy][1] = int(expHigh)
# If no range exists for any of the
# other dimensions, the range for
......@@ -1025,7 +1024,7 @@ def calcExpansion(slices, coverage):
continue
if np.any(np.isnan(expansion[dimy])):
expansion[dimy] = coverage[:, dimy, vol]
expansion[dimy] = [int(c) for c in coverage[:, dimy, vol]]
# Finish off this expansion
expansion = finishExpansion(expansion, vol)
......
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