From bb74ad120f72a6384bae6a0d81351c199d747ac7 Mon Sep 17 00:00:00 2001
From: amitjans <amitjans@ethz.ch>
Date: Sun, 4 Jul 2021 14:09:13 +0200
Subject: [PATCH] Small fix

---
 tools.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools.py b/tools.py
index 0978320..982870a 100644
--- a/tools.py
+++ b/tools.py
@@ -74,7 +74,7 @@ class Main:
                 output = {
                         'image': image,
                         'coord': np.array([[-1, -1, -1]]),
-                        'trap_state': self.trap_state.trap_state,
+                        'trap_state': "Ion cloud",
                         'num_ions': -1,
                         'bright_ions': -1,
                         'dim_ions': -1,
@@ -117,7 +117,7 @@ class Main:
             roundness = ion_roundness(img, coord[0][:2])
             img = compensate_gradient(img, coord)
         else:
-            roundness = -1
+            roundness = 0
         max_int, num_pix = max_ion_intensity(img, coord)
         coord = detect_dim_ions(img, coord, max_int)
         linearity = ion_linearity(coord)
-- 
GitLab