diff --git a/tools.py b/tools.py index 097832031012ec6b40e6c5170bf66ed5d7083bf2..982870a538729930c0eefd881de7126d1a47fa2f 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)