Skip to content

SpotHologram .optimize(feedback="external_spot") not working as expected #180

@LagrangeGER

Description

@LagrangeGER

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.5.0Planned part of the 0.5.0 releasebugSomething isn't workingdocumentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions