openflexure-microscope-server/tests/test_plugins.py
2018-12-12 15:01:10 +00:00

22 lines
659 B
Python

#!/usr/bin/env python
from openflexure_microscope.camera.pi import StreamingCamera
from openflexure_stage import OpenFlexureStage
from openflexure_microscope import Microscope, config
import atexit
import logging, sys
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
if __name__ == '__main__':
openflexurerc = config.load_config()
print(openflexurerc)
microscope = Microscope(StreamingCamera(config=openflexurerc), OpenFlexureStage("/dev/ttyUSB0"), config=openflexurerc)
print(microscope.plugin.plugins)
# Check that default tets plugins have loaded
print(microscope.plugin.default.identify())
microscope.close()