Loading tests/test_plugins.py +4 −6 Original line number Diff line number Diff line Loading @@ -10,15 +10,13 @@ logging.basicConfig(stream=sys.stderr, level=logging.DEBUG) if __name__ == '__main__': openflexurerc = config.load_config() microscope = Microscope(StreamingCamera(config=openflexurerc), OpenFlexureStage("/dev/ttyUSB0")) print(openflexurerc) microscope.find_plugins() # Automatically find microscope plugins microscope = Microscope(StreamingCamera(config=openflexurerc), OpenFlexureStage("/dev/ttyUSB0"), config=openflexurerc) print(dir(microscope.plugin)) print(microscope.plugin.plugins) # Check that default tets plugins have loaded print("RUNNING PLUGIN METHODS:") microscope.plugin.test1.run() microscope.plugin.test2.run() print(microscope.plugin.default.identify()) microscope.close() Loading
tests/test_plugins.py +4 −6 Original line number Diff line number Diff line Loading @@ -10,15 +10,13 @@ logging.basicConfig(stream=sys.stderr, level=logging.DEBUG) if __name__ == '__main__': openflexurerc = config.load_config() microscope = Microscope(StreamingCamera(config=openflexurerc), OpenFlexureStage("/dev/ttyUSB0")) print(openflexurerc) microscope.find_plugins() # Automatically find microscope plugins microscope = Microscope(StreamingCamera(config=openflexurerc), OpenFlexureStage("/dev/ttyUSB0"), config=openflexurerc) print(dir(microscope.plugin)) print(microscope.plugin.plugins) # Check that default tets plugins have loaded print("RUNNING PLUGIN METHODS:") microscope.plugin.test1.run() microscope.plugin.test2.run() print(microscope.plugin.default.identify()) microscope.close()