Skip to content
Snippets Groups Projects
Commit a90e2efe authored by Harry Carey's avatar Harry Carey Committed by GitHub
Browse files

Fixed issue where negative coordinates where displayed as repeating elements

parent 38c95ee2
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,8 @@ def generate_target_slice(alignment, volume):
Z_Coords = np.round(Z_Coords).astype(int)
out_bounds_Coords = (
(X_Coords > bounds[0]) | (Y_Coords > bounds[1]) | (Z_Coords > bounds[2])
(X_Coords > bounds[0]) | (Y_Coords > bounds[1]) | (Z_Coords > bounds[2])
| (X_Coords < 0) | (Y_Coords < 0) | (Z_Coords < 0)
)
X_pad = X_Coords.copy()
Y_pad = Y_Coords.copy()
......
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