Skip to content
Snippets Groups Projects
Commit bb74ad12 authored by Albert Mitjans I Coma's avatar Albert Mitjans I Coma
Browse files

Small fix

parent 3b8f8ddb
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ class Main: ...@@ -74,7 +74,7 @@ class Main:
output = { output = {
'image': image, 'image': image,
'coord': np.array([[-1, -1, -1]]), 'coord': np.array([[-1, -1, -1]]),
'trap_state': self.trap_state.trap_state, 'trap_state': "Ion cloud",
'num_ions': -1, 'num_ions': -1,
'bright_ions': -1, 'bright_ions': -1,
'dim_ions': -1, 'dim_ions': -1,
...@@ -117,7 +117,7 @@ class Main: ...@@ -117,7 +117,7 @@ class Main:
roundness = ion_roundness(img, coord[0][:2]) roundness = ion_roundness(img, coord[0][:2])
img = compensate_gradient(img, coord) img = compensate_gradient(img, coord)
else: else:
roundness = -1 roundness = 0
max_int, num_pix = max_ion_intensity(img, coord) max_int, num_pix = max_ion_intensity(img, coord)
coord = detect_dim_ions(img, coord, max_int) coord = detect_dim_ions(img, coord, max_int)
linearity = ion_linearity(coord) linearity = ion_linearity(coord)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment