From d6ed724d72bf72a7bf67d3aefbe941e93c882ffc Mon Sep 17 00:00:00 2001
From: schlda00 <kai.schleicher@unibas.ch>
Date: Tue, 15 Apr 2025 11:11:11 +0200
Subject: [PATCH] Adapt to api change in trackmate

---
 2d_spots_in_fibers.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/2d_spots_in_fibers.py b/2d_spots_in_fibers.py
index f16d7c7..6dffdfc 100644
--- a/2d_spots_in_fibers.py
+++ b/2d_spots_in_fibers.py
@@ -313,7 +313,8 @@ def run_trackmate_dog_spot_detector(imp, quality_threshold):
 
     exportSpotsAsDots = True
     exportTracksOnly = False
-    label_imp = LabelImgExporter.createLabelImagePlus(trackmate, exportSpotsAsDots, exportTracksOnly, False)
+    labelIdPainting = LabelImgExporter.LabelIdPainting.LABEL_IS_SPOT_ID
+    label_imp = LabelImgExporter.createLabelImagePlus(trackmate, exportSpotsAsDots, exportTracksOnly, labelIdPainting)
     label_imp.setCalibration(cal)
     imp.close() 
 
-- 
GitLab