Added state key for server package version

This commit is contained in:
Joel Collins 2019-06-05 17:54:39 +01:00
parent 15c9c0e321
commit 4aba270365

View file

@ -3,7 +3,7 @@
Defines a microscope object, binding a camera and stage with basic functionality.
"""
import logging
import numpy as np
import pkg_resources
import uuid
from openflexure_stage import OpenFlexureStage
@ -151,7 +151,8 @@ class Microscope:
state = {
'camera': self.camera.state,
'stage': self.stage.state,
'plugin': self.plugin.state
'plugin': self.plugin.state,
'version': pkg_resources.get_distribution('openflexure_microscope').version
}
return state