rgerum / saenopy

Semi-affine Elastic Network Optimizer to calculate forces in collagen or other biopolymer networks.
MIT License
11 stars 1 forks source link

Bug in getVectorFieldImage() in ExportRender2D #41

Closed nik-liegroup closed 6 months ago

nik-liegroup commented 7 months ago

I think this produces wrong values for "start" and "end", resulting in only one z-slice being displayed, no matter which z_range: z_range = [0, 5, 10, 1000][params["stack"]["z_proj"]] start = np.clip(params["stack"]["z"] - z_range, 0, stack.shape[2]) end = np.clip(params["stack"]["z"] + z_range, 0, stack.shape[2])

Setting im = stack[:, :, :, 0:11] manually fixed the problem for my stack.