Definition at line 442 of file test_devices.py.
◆ setUp()
| def microscope.testsuite.test_devices.TestDummyController.setUp |
( |
|
self | ) |
|
Definition at line 443 of file test_devices.py.
443 def setUp(self):
444 self.laser = simulators.SimulatedLightSource()
445 self.filterwheel = simulators.SimulatedFilterWheel(positions=6)
446 self.device = simulators.SimulatedController(
447 {"laser": self.laser, "filterwheel": self.filterwheel}
448 )
449
◆ test_control_filterwheel()
| def microscope.testsuite.test_devices.TestDummyController.test_control_filterwheel |
( |
|
self | ) |
|
Definition at line 455 of file test_devices.py.
455 def test_control_filterwheel(self):
456 self.assertEqual(self.device.devices["filterwheel"].position, 0)
457 self.device.devices["filterwheel"].position = 2
458 self.assertEqual(self.device.devices["filterwheel"].position, 2)
459
◆ test_control_laser()
| def microscope.testsuite.test_devices.TestDummyController.test_control_laser |
( |
|
self | ) |
|
Definition at line 460 of file test_devices.py.
460 def test_control_laser(self):
461 self.assertEqual(self.device.devices["laser"].power, 0.0)
462 self.device.devices["laser"].enable()
463 self.device.devices["laser"].power = 0.8
464 self.assertEqual(self.device.devices["laser"].power, 0.8)
465
466
◆ test_device_names()
| def microscope.testsuite.test_devices.TestDummyController.test_device_names |
( |
|
self | ) |
|
Definition at line 450 of file test_devices.py.
450 def test_device_names(self):
451 self.assertSetEqual(
452 {"laser", "filterwheel"}, set(self.device.devices.keys())
453 )
454
◆ device
| microscope.testsuite.test_devices.TestDummyController.device |
◆ filterwheel
| microscope.testsuite.test_devices.TestDummyController.filterwheel |
◆ laser
| microscope.testsuite.test_devices.TestDummyController.laser |
The documentation for this class was generated from the following file:
- F:/repos/BioImager/BioImager/PythonMicroscope/microscope/testsuite/test_devices.py