Added fov into microscope RC
This commit is contained in:
parent
748c9b8b20
commit
0cde8b717d
2 changed files with 7 additions and 1 deletions
|
|
@ -42,9 +42,12 @@ class Microscope(object):
|
||||||
if attach_plugins:
|
if attach_plugins:
|
||||||
self.attach_plugins()
|
self.attach_plugins()
|
||||||
|
|
||||||
# Get name from config, or generate
|
# Set default parameters
|
||||||
if not 'name' in self._config:
|
if not 'name' in self._config:
|
||||||
self._config['name'] = uuid.uuid4().hex
|
self._config['name'] = uuid.uuid4().hex
|
||||||
|
|
||||||
|
if not 'fov' in self._config:
|
||||||
|
self._config['fov'] = [0, 0] # Assumes pi camera 2, and 40x objective
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
"""Create microscope on context enter."""
|
"""Create microscope on context enter."""
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,9 @@ video_resolution: [832, 624]
|
||||||
image_resolution: [2592, 1944]
|
image_resolution: [2592, 1944]
|
||||||
numpy_resolution: [1312, 976]
|
numpy_resolution: [1312, 976]
|
||||||
|
|
||||||
|
# Field of view, in stage steps
|
||||||
|
fov: [4100, 3146]
|
||||||
|
|
||||||
# Capture quality
|
# Capture quality
|
||||||
jpeg_quality: 75
|
jpeg_quality: 75
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue