BioImager  3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
Loading...
Searching...
No Matches
microscope.abc.FloatingDeviceMixin Class Reference
Inheritance diagram for microscope.abc.FloatingDeviceMixin:
microscope.cameras.andorsdk3.AndorSDK3 microscope.cameras.atmcd.AndorAtmcd microscope.cameras.pvcam.PVCamera microscope.stages.linkam._LinkamBase microscope.testsuite.devices.TestFloatingDevice microscope.stages.linkam.LinkamCMS

Public Member Functions

None __init__ (self, int index, **kwargs)
 
str get_id (self)
 

Detailed Description

A mixin for devices that 'float'.

Some SDKs handling multiple devices do not allow for explicit
selection of a specific device.  Instead, when the SDK is
initialised it assigns an index to each device.  However, this
index is only unique until the program ends and next time the
program runs the device might be assigned a different index.  This
means that it is not possible to request a specific device to the
SDK.  Instead, one connects to one of the available devices, then
initialises it, and only then can one check which one we got.

Floating devices are a problem in systems where there are multiple
devices of the same type but we only want to initialise a subset
of them.  Make sure that a device really is a floating device
before making use of this class.  Avoid it if possible.

This class is a mixin which enforces the implementation of a
`get_id` method, which typically returns the device serial number.

Args:
    index: the index of the device on a shared library.  This
        argument is added by the device_server program.

Definition at line 188 of file abc.py.

Constructor & Destructor Documentation

◆ __init__()

None microscope.abc.FloatingDeviceMixin.__init__ (   self,
int  index,
**  kwargs 
)

Reimplemented in microscope.stages.linkam._LinkamBase, and microscope.stages.linkam.LinkamCMS.

Definition at line 214 of file abc.py.

214 def __init__(self, index: int, **kwargs) -> None:
215 super().__init__(**kwargs)
216 self._index = index
217

Member Function Documentation

◆ get_id()

str microscope.abc.FloatingDeviceMixin.get_id (   self)
Return a unique hardware identifier such as a serial number.

Reimplemented in microscope.cameras.andorsdk3.AndorSDK3, microscope.cameras.atmcd.AndorAtmcd, microscope.cameras.pvcam.PVCamera, microscope.stages.linkam._LinkamBase, and microscope.testsuite.devices.TestFloatingDevice.

Definition at line 219 of file abc.py.

219 def get_id(self) -> str:
220 """Return a unique hardware identifier such as a serial number."""
221 pass
222
223

Referenced by microscope.cameras.atmcd.AndorAtmcd.initialize().


The documentation for this class was generated from the following file: