Fixed camera config being overwritten instead of updated

This commit is contained in:
Joel Collins 2019-02-20 10:31:02 +00:00
parent 4f2cf79a26
commit 7d9f7278f1

View file

@ -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