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.controllers.toptica Namespace Reference

Classes

class  _iChromeConnection
 
class  _iChromeLaser
 
class  _iChromeLaserConnection
 
class  iChromeMLE
 

Functions

str _parse_string (bytes answer)
 
bool _parse_bool (bytes answer)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 _QUOTATION_CODE = ord(b'"')
 

Function Documentation

◆ _parse_bool()

bool microscope.controllers.toptica._parse_bool ( bytes answer)
protected

Definition at line 40 of file toptica.py.

40def _parse_bool(answer: bytes) -> bool:
41 assert answer in [b"#f", b"#t"]
42 return answer == b"#t"
43
44

◆ _parse_string()

str microscope.controllers.toptica._parse_string ( bytes answer)
protected

Definition at line 35 of file toptica.py.

35def _parse_string(answer: bytes) -> str:
36 assert answer[0] == _QUOTATION_CODE and answer[-1] == _QUOTATION_CODE
37 return answer[1:-1].decode()
38
39

Variable Documentation

◆ _LOGGER

microscope.controllers.toptica._LOGGER = logging.getLogger(__name__)
protected

Definition at line 30 of file toptica.py.

◆ _QUOTATION_CODE

microscope.controllers.toptica._QUOTATION_CODE = ord(b'"')
protected

Definition at line 32 of file toptica.py.