I am currently trying to provide my own feedback for a SpotHologram object to optimize on, namely atomic fluorescence inside of our tweezers. During testing, I believe to have encountered a bug:
Namely, that the code only executes as expected, so providing any kind of external feedback, if I also have "experimental_spot" inside of stat_groups. I have verified this on my end by only adding / taking this argument away and without it, the my program does nothing. With it, feedback to the hologram works.
In the following please find a code snippet for the example that worked in the end:
def optimize_tweezers(tweezers: SpotHologram):
tweezers.optimize(
'WGS-Kim',
maxiter=10, # was 20
feedback="external_spot",
callback = atom_fluorescence_callback,
stat_groups=["external_spot", "experimental_spot"],
fixed_phase=True
)
return tweezers
I am currently trying to provide my own feedback for a SpotHologram object to optimize on, namely atomic fluorescence inside of our tweezers. During testing, I believe to have encountered a bug:
Namely, that the code only executes as expected, so providing any kind of external feedback, if I also have "experimental_spot" inside of stat_groups. I have verified this on my end by only adding / taking this argument away and without it, the my program does nothing. With it, feedback to the hologram works.
In the following please find a code snippet for the example that worked in the end: