Fixed camera config being overwritten instead of updated
This commit is contained in:
parent
4f2cf79a26
commit
7d9f7278f1
1 changed files with 2 additions and 2 deletions
|
|
@ -187,12 +187,12 @@ class Microscope(object):
|
||||||
|
|
||||||
def write_config(self, config: dict):
|
def write_config(self, config: dict):
|
||||||
"""
|
"""
|
||||||
Writes and applies a config dictionary. Missing parameters will be left untouched.
|
Writes and applies a config dictionary. Missing parameters will be left untouched.
|
||||||
"""
|
"""
|
||||||
# If attached to a camera
|
# If attached to a camera
|
||||||
if self.camera:
|
if self.camera:
|
||||||
# Update camera config
|
# Update camera config
|
||||||
self.camera.config = config
|
self.camera.config.update(config)
|
||||||
|
|
||||||
# If attached to a stage
|
# If attached to a stage
|
||||||
# TODO: Convert stage settings into a config expansion
|
# TODO: Convert stage settings into a config expansion
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue