Updated plugin tester
This commit is contained in:
parent
e1b021583b
commit
10d89e541b
1 changed files with 4 additions and 6 deletions
|
|
@ -10,15 +10,13 @@ logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
openflexurerc = config.load_config()
|
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
|
# Check that default tets plugins have loaded
|
||||||
print("RUNNING PLUGIN METHODS:")
|
print(microscope.plugin.default.identify())
|
||||||
microscope.plugin.test1.run()
|
|
||||||
microscope.plugin.test2.run()
|
|
||||||
|
|
||||||
microscope.close()
|
microscope.close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue