From 7d9f7278f1ba76eedced7125fde19c20299e629a Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 20 Feb 2019 10:31:02 +0000 Subject: [PATCH] Fixed camera config being overwritten instead of updated --- openflexure_microscope/microscope.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openflexure_microscope/microscope.py b/openflexure_microscope/microscope.py index b2984b72..45fcc398 100644 --- a/openflexure_microscope/microscope.py +++ b/openflexure_microscope/microscope.py @@ -187,12 +187,12 @@ class Microscope(object): 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 self.camera: # Update camera config - self.camera.config = config + self.camera.config.update(config) # If attached to a stage # TODO: Convert stage settings into a config expansion