![]() |
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.
|
Public Member Functions | |
| None | __init__ (self, int buffer_length=0, **kwargs) |
| def | __del__ (self) |
| None | abort (self) |
| None | enable (self) |
| None | disable (self) |
| None | set_client (self, new_client) |
| None | update_settings (self, settings, bool init=False) |
| None | receiveClient (self, str client_uri) |
| def | grab_next_data (self, bool soft_trigger=True) |
| None | receiveData (self, data, timestamp) |
Public Member Functions inherited from microscope.abc.Device | |
| None | __init__ (self) |
| None | __del__ (self) |
| bool | get_is_enabled (self) |
| None | disable (self) |
| None | enable (self) |
| None | initialize (self) |
| None | shutdown (self) |
| None | add_setting (self, name, dtype, get_func, set_func, values, typing.Optional[typing.Callable[[], bool]] readonly=None) |
| def | get_setting (self, str name) |
| def | get_all_settings (self) |
| None | set_setting (self, str name, value) |
| def | describe_setting (self, str name) |
| def | describe_settings (self) |
| def | update_settings (self, incoming, bool init=False) |
Public Attributes | |
| enabled | |
Public Attributes inherited from microscope.abc.Device | |
| enabled | |
Static Public Attributes | |
| set_setting = keep_acquiring(Device.set_setting) | |
A data capture device. This class handles a thread to fetch data from a device and dispatch it to a client. The client is set using set_client(uri) or (legacy) receiveClient(uri). Derived classed should implement:: * :meth:`abort` (required) * :meth:`_fetch_data` (required) * :meth:`_process_data` (optional) Derived classes may override `__init__`, `enable` and `disable`, but must ensure to call this class's implementations as indicated in the docstrings.
| None microscope.abc.DataDevice.__init__ | ( | self, | |
| int | buffer_length = 0, |
||
| ** | kwargs | ||
| ) |
Derived.__init__ must call this at some point.
Reimplemented from microscope.abc.Device.
Reimplemented in microscope.abc.Camera, microscope.simulators.SimulatedCamera, microscope.testsuite.devices.TestCamera, microscope.cameras.picam.PiCamera, microscope.simulators.stage_aware_camera.StageAwareCamera, and microscope.cameras.ximea.XimeaCamera.
Definition at line 558 of file abc.py.
References microscope.abc.DataDevice.__init__(), microscope.abc.DataDevice._acquiring, microscope.cameras.andorsdk3.AndorSDK3._acquiring(), microscope.cameras.atmcd.AndorAtmcd._acquiring(), microscope.cameras.picam.PiCamera._acquiring, microscope.cameras.pvcam.PVCamera._acquiring, microscope.cameras.ximea.XimeaCamera._acquiring, microscope.simulators.SimulatedCamera._acquiring, microscope.abc.DataDevice._clientStack, microscope.abc.DataDevice._dispatch_buffer, microscope.abc.DataDevice._dispatch_thread, microscope.abc.DataDevice._fetch_thread, microscope.abc.DataDevice._fetch_thread_run, microscope.abc.DataDevice._liveClients, microscope.abc.DataDevice._new_data_condition, microscope.abc.DataDevice._using_callback, microscope.cameras.andorsdk3.AndorSDK3._using_callback, microscope.cameras.pvcam.PVCamera._using_callback, microscope.abc.Device.disable(), microscope.abc.DataDevice.disable(), microscope.controllers.coolled._CoolLEDChannel.disable(), microscope.controllers.lumencor._SpectraIIILightChannel.disable(), microscope.lights.cobolt.CoboltLaser.disable(), microscope.lights.sapphire.SapphireLaser.disable(), and microscope.lights.toptica.TopticaiBeam.disable().
Referenced by microscope.abc.DataDevice.__init__().
| def microscope.abc.DataDevice.__del__ | ( | self | ) |
Reimplemented from microscope.abc.Device.
Definition at line 580 of file abc.py.
| None microscope.abc.DataDevice.abort | ( | self | ) |
Stop acquisition as soon as possible.
Reimplemented in microscope.cameras.andorsdk3.AndorSDK3, microscope.cameras.atmcd.AndorAtmcd, microscope.cameras.picam.PiCamera, microscope.cameras.pvcam.PVCamera, microscope.cameras.ximea.XimeaCamera, and microscope.simulators.SimulatedCamera.
Definition at line 588 of file abc.py.
References microscope.abc.DataDevice._acquiring, microscope.cameras.andorsdk3.AndorSDK3._acquiring(), microscope.cameras.atmcd.AndorAtmcd._acquiring(), microscope.cameras.picam.PiCamera._acquiring, microscope.cameras.pvcam.PVCamera._acquiring, microscope.cameras.ximea.XimeaCamera._acquiring, and microscope.simulators.SimulatedCamera._acquiring.
Referenced by microscope.simulators.SimulatedCamera.abort(), microscope.cameras.andorsdk3.AndorSDK3.get_id(), microscope.cameras.atmcd.AndorAtmcd.get_id(), microscope.cameras.picam.PiCamera.initialize(), microscope.cameras.ximea.XimeaCamera.initialize(), microscope.cameras.andorsdk3.AndorSDK3.set_trigger(), and microscope.abc.Device.update_settings().
| None microscope.abc.DataDevice.disable | ( | self | ) |
Disable the data capture device. Implement device-specific code in `_do_disable`.
Reimplemented from microscope.abc.Device.
Definition at line 629 of file abc.py.
References microscope.abc.DataDevice._client, microscope.testsuite.devices.DummyDSP._client, microscope.abc.DataDevice._clientStack, microscope.abc.DataDevice._dispatch_buffer, microscope.abc.DataDevice._fetch_data(), microscope.cameras.atmcd.AndorAtmcd._fetch_data(), microscope.cameras.picam.PiCamera._fetch_data(), microscope.cameras.pvcam.PVCamera._fetch_data(), microscope.cameras.ximea.XimeaCamera._fetch_data(), microscope.simulators.SimulatedCamera._fetch_data(), microscope.simulators.stage_aware_camera.StageAwareCamera._fetch_data(), microscope.cameras.andorsdk3.AndorSDK3._fetch_data(), microscope.abc.DataDevice._fetch_thread, microscope.abc.DataDevice._fetch_thread_run, microscope.abc.DataDevice._liveClients, microscope.abc.DataDevice._process_data(), microscope.abc.Camera._process_data(), microscope.abc.DataDevice._put(), microscope.abc.DataDevice._send_data(), microscope.abc.DataDevice.disable(), microscope.abc.Device.enabled, microscope.abc.DataDevice.enabled, and microscope.testsuite.devices.DummySLM.enabled.
Referenced by microscope.abc.DataDevice.__init__(), microscope.abc.DataDevice.disable(), microscope.lights.cobolt.CoboltLaser.get_status(), microscope.lights.deepstar.DeepstarLaser.get_status(), microscope.lights.obis.ObisLaser.get_status(), and microscope.abc.Device.shutdown().
| None microscope.abc.DataDevice.enable | ( | self | ) |
Enable the data capture device. Ensures that a data handling threads are running. Implement device specific code in `_do_enable`.
Reimplemented from microscope.abc.Device.
Definition at line 592 of file abc.py.
References microscope.abc.DataDevice._dispatch_loop(), microscope.abc.DataDevice._dispatch_thread, microscope.abc.Device._do_enable(), microscope.cameras.andorsdk3.AndorSDK3._do_enable(), microscope.cameras.atmcd.AndorAtmcd._do_enable(), microscope.cameras.picam.PiCamera._do_enable(), microscope.cameras.pvcam.PVCamera._do_enable(), microscope.cameras.ximea.XimeaCamera._do_enable(), microscope.controllers.toptica._iChromeLaser._do_enable(), microscope.controllers.zaber._ZaberStage._do_enable(), microscope.controllers.zaber._ZaberLED._do_enable(), microscope.filterwheels.aurox.Clarity._do_enable(), microscope.lights.cobolt.CoboltLaser._do_enable(), microscope.lights.deepstar.DeepstarLaser._do_enable(), microscope.lights.obis.ObisLaser._do_enable(), microscope.lights.sapphire.SapphireLaser._do_enable(), microscope.simulators.SimulatedCamera._do_enable(), microscope.simulators.SimulatedLightSource._do_enable(), microscope.stages.ludl._LudlStage._do_enable(), microscope.abc.DataDevice._fetch_loop(), microscope.abc.DataDevice._fetch_thread, microscope.abc.DataDevice._fetch_thread_run, microscope.abc.DataDevice._using_callback, microscope.cameras.andorsdk3.AndorSDK3._using_callback, microscope.cameras.pvcam.PVCamera._using_callback, microscope.abc.Device.enabled, microscope.abc.DataDevice.enabled, and microscope.testsuite.devices.DummySLM.enabled.
| def microscope.abc.DataDevice.grab_next_data | ( | self, | |
| bool | soft_trigger = True |
||
| ) |
Returns results from next trigger via a direct call.
Args:
soft_trigger: calls :meth:`trigger` if `True`, waits for
hardware trigger if `False`.
Definition at line 789 of file abc.py.
References microscope.abc.DataDevice._new_data, microscope.abc.DataDevice._new_data_condition, microscope.abc.Device.enabled, microscope.abc.DataDevice.enabled, microscope.testsuite.devices.DummySLM.enabled, microscope.testsuite.devices.DummyDSP.set_client(), microscope.abc.DataDevice.set_client(), microscope.abc.TriggerTargetMixin.trigger(), and microscope.abc.DeformableMirror.trigger().
| None microscope.abc.DataDevice.receiveClient | ( | self, | |
| str | client_uri | ||
| ) |
A passthrough for compatibility.
Definition at line 785 of file abc.py.
References microscope.testsuite.devices.DummyDSP.set_client(), and microscope.abc.DataDevice.set_client().
| None microscope.abc.DataDevice.receiveData | ( | self, | |
| data, | |||
| timestamp | |||
| ) |
Unblocks grab_next_frame so it can return.
Definition at line 812 of file abc.py.
References microscope.abc.DataDevice._new_data, and microscope.abc.DataDevice._new_data_condition.
| None microscope.abc.DataDevice.set_client | ( | self, | |
| new_client | |||
| ) |
Set up a connection to our client.
Clients now sit in a stack so that a single device may send
different data to multiple clients in a single experiment.
The usage is currently::
device.set_client(client) # Add client to top of stack
# do stuff, send triggers, receive data
device.set_client(None) # Pop top client off stack.
There is a risk that some other client calls ``None`` before
the current client is finished. Avoiding this will require
rework here to identify the caller and remove only that caller
from the client stack.
Definition at line 749 of file abc.py.
References microscope.abc.DataDevice._client, and microscope.testsuite.devices.DummyDSP._client.
Referenced by microscope.clients.DataClient.enable(), microscope.abc.DataDevice.grab_next_data(), and microscope.abc.DataDevice.receiveClient().
| None microscope.abc.DataDevice.update_settings | ( | self, | |
| settings, | |||
| bool | init = False |
||
| ) |
Update settings, toggling acquisition if necessary.
Reimplemented from microscope.abc.Device.
Definition at line 780 of file abc.py.
References microscope.abc.DataDevice.update_settings().
Referenced by microscope.abc.DataDevice.update_settings().
| microscope.abc.DataDevice.enabled |
Definition at line 605 of file abc.py.
Referenced by microscope.abc.Device.disable(), microscope.abc.DataDevice.disable(), microscope.abc.Device.enable(), microscope.abc.DataDevice.enable(), and microscope.abc.DataDevice.grab_next_data().
|
static |
Definition at line 585 of file abc.py.
Referenced by microscope.cameras.atmcd.AndorAtmcd.initialize(), and microscope.cameras.atmcd.AndorAtmcd.set_trigger().