BioImager  5.0.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
Loading...
Searching...
No Matches
microscope.abc Namespace Reference

Classes

class  _Setting
 
class  Camera
 
class  Controller
 
class  DataDevice
 
class  DeformableMirror
 
class  Device
 
class  FilterWheel
 
class  FloatingDeviceMixin
 
class  LightSource
 
class  SerialDeviceMixin
 
class  Stage
 
class  StageAxis
 
class  TriggerTargetMixin
 

Functions

 _call_if_callable (f)
 
 keep_acquiring (func)
 

Variables

 _logger = logging.getLogger(__name__)
 
dict DTYPES
 
 _acquiring
 

Function Documentation

◆ _call_if_callable()

microscope.abc._call_if_callable ( f)
protected
Call callables, or return value of non-callables.

Definition at line 59 of file abc.py.

59def _call_if_callable(f):
60 """Call callables, or return value of non-callables."""
61 return f() if callable(f) else f
62
63

◆ keep_acquiring()

microscope.abc.keep_acquiring ( func)
Wrapper to preserve acquiring state of data capture devices.

Definition at line 524 of file abc.py.

524def keep_acquiring(func):
525 """Wrapper to preserve acquiring state of data capture devices."""
526
527 def wrapper(self, *args, **kwargs):
528 if self._acquiring:
529 self.abort()
530 result = func(self, *args, **kwargs)
531 self._do_enable()
532 else:
533 result = func(self, *args, **kwargs)
534 return result
535
536 return wrapper
537
538

Variable Documentation

◆ _acquiring

microscope.abc._acquiring
protected

Definition at line 528 of file abc.py.

◆ _logger

microscope.abc._logger = logging.getLogger(__name__)
protected

Definition at line 42 of file abc.py.

◆ DTYPES

dict microscope.abc.DTYPES
Initial value:
1= {
2 "int": (tuple,),
3 "float": (tuple,),
4 "bool": (type(None),),
5 "enum": (list, EnumMeta, dict, tuple),
6 "str": (int,),
7 "tuple": (type(None),),
8}

Definition at line 49 of file abc.py.