microscope.mirror.mirao52e module

Imagine Optic Mirao 52-e deformable mirror.

The Mirao 52-e deformable mirror is not capable of receiving hardware triggers. It is only capable of sending hardware triggers. That sending of hardware triggers is not implemented on this module because it’s pointless.

The Mirao 52-e deformable mirror has a limitation on valid patterns. From the vendor documentation (the command is the pattern to be applied):

[…] the sum of the absolute values defining the command must be lower than or equal to 24 and each value must be comprised between -1.0 and 1.0.

In microscope, a pattern must be specified in the [0 1] range. However, the limit of 24, after rescaling to [-1 1] range, still applies.

class microscope.mirror.mirao52e.Mirao52e(**kwargs)[source]

Bases: microscope.devices.DeformableMirror

static _normalize_patterns(patterns: numpy.ndarray) → numpy.ndarray[source]

mirao52e SDK expects values in the [-1 1] range, so we normalize them from the [0 1] range we expect in our interface.

apply_pattern(pattern: numpy.ndarray) → None[source]

Apply this pattern.