Fix memory leak in streak finder #3
Reference in New Issue
Block a user
Delete Branch "ext-dorofe_e/dap:cbd_bugfix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have got rid of all fancy data containers from streak_finder repo and basically moved a few chunks of code from there to dap,
plus removed 3D support (since we always have single images and not stacks)
Done memory tests on Ra, and it hovers but does not grow.
Will open for review after final cleanup.
Added TODOs
@@ -103,0 +97,4 @@out=np.zeros_like(data),where=(std!=0.0))del whitefieldTODO:
dels are likely unnecessary; run more tests to make sure@@ -146,3 +155,1 @@for mask_roi in mask_rois:cryst_data = cryst_data.mask_region(mask_roi)# mask_rois = results.get("cbd_mask_rois", []) # list of [y_min, y_max, x_min, x_max]TODO: restore mask ROIs functionality
@@ -187,3 +206,3 @@x_center -= crop_roi[0]y_center -= crop_roi[2]streaks_mask = streaks.concentric_only(x_center, y_center)threshold = 0.33TODO: move concentric filter to a separate method
WIP: Fix memory leak in streak finderto Fix memory leak in streak finder