Added state key for server package version
This commit is contained in:
parent
15c9c0e321
commit
4aba270365
1 changed files with 3 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
Defines a microscope object, binding a camera and stage with basic functionality.
|
Defines a microscope object, binding a camera and stage with basic functionality.
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import numpy as np
|
import pkg_resources
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openflexure_stage import OpenFlexureStage
|
from openflexure_stage import OpenFlexureStage
|
||||||
|
|
@ -151,7 +151,8 @@ class Microscope:
|
||||||
state = {
|
state = {
|
||||||
'camera': self.camera.state,
|
'camera': self.camera.state,
|
||||||
'stage': self.stage.state,
|
'stage': self.stage.state,
|
||||||
'plugin': self.plugin.state
|
'plugin': self.plugin.state,
|
||||||
|
'version': pkg_resources.get_distribution('openflexure_microscope').version
|
||||||
}
|
}
|
||||||
return state
|
return state
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue