From 0e76f6e89d84d175bc365334f3520ceb1f0e8681 Mon Sep 17 00:00:00 2001 From: schlda00 <kai.schleicher@unibas.ch> Date: Tue, 22 Apr 2025 14:24:21 +0200 Subject: [PATCH] Clear ROI manager before adding and converting ROIs --- 2d_spots_in_fibers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/2d_spots_in_fibers.py b/2d_spots_in_fibers.py index afe9576..f7bb52a 100644 --- a/2d_spots_in_fibers.py +++ b/2d_spots_in_fibers.py @@ -453,6 +453,7 @@ def save_labelimage_as_ijroiset(label_imp, rm, filename, suffix, target): target : str the target directory in which to save the table """ + rm.reset() command.run( Labels2Rois , False , 'imp' , label_imp , 'rm', rm).get() savename = filename + "_" + str(suffix) + ".zip" savepath = os.path.join(target, savename) -- GitLab