![]() |
BioImager
4.9.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.
|
Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| open (self) | |
| close (self) | |
| handle (self, command) | |
| write (self, data) | |
| read (self, size=1) | |
| readline (self, size=-1) | |
| reset_input_buffer (self) | |
| reset_output_buffer (self) | |
Public Attributes | |
| in_buffer = io.BytesIO() | |
| out_buffer = io.BytesIO() | |
| int | out_pending_bytes = 0 |
| int | out_parsed_bytes = 0 |
| int | in_read_bytes = 0 |
| eol = self.out_buffer.read(self.out_pending_bytes) | |
Protected Member Functions | |
| _readx_wrapper (self, reader, *args, **kwargs) | |
Base class to mock devices controlled via serial. It has two :class:`io.BytesIO` buffers. One :func:`write`s the output buffer and the other :func:`read`s the input buffer. After a write, the output buffer is analysed for a command. If there is a command, stuff gets done. This usually means adding to the input buffer and changing state of the device.
Definition at line 38 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
Definition at line 49 of file mock_devices.py.
|
protected |
Place pointer of input buffer before and after read methods
Definition at line 86 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.close | ( | self | ) |
Definition at line 65 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.handle | ( | self, | |
| command ) |
Definition at line 69 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.open | ( | self | ) |
Definition at line 62 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.read | ( | self, | |
| size = 1 ) |
Definition at line 93 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.readline | ( | self, | |
| size = -1 ) |
Definition at line 96 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.reset_input_buffer | ( | self | ) |
Definition at line 99 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.reset_output_buffer | ( | self | ) |
Definition at line 103 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.write | ( | self, | |
| data ) |
Definition at line 72 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.eol = self.out_buffer.read(self.out_pending_bytes) |
Definition at line 81 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.in_buffer = io.BytesIO() |
Definition at line 51 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.in_read_bytes = 0 |
Definition at line 60 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.out_buffer = io.BytesIO() |
Definition at line 52 of file mock_devices.py.
| int microscope.testsuite.mock_devices.SerialMock.out_parsed_bytes = 0 |
Definition at line 57 of file mock_devices.py.
| microscope.testsuite.mock_devices.SerialMock.out_pending_bytes = 0 |
Definition at line 56 of file mock_devices.py.