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__':
|
||||
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…
Add table
Add a link
Reference in a new issue