From cd1e450a2b0116fe3e5f14bfc20aaccd29472975 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 30 Jan 2019 18:23:26 +0000 Subject: [PATCH] Fixed massive bug in config contraction --- openflexure_microscope/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openflexure_microscope/config.py b/openflexure_microscope/config.py index 2ed7be05..5880550a 100644 --- a/openflexure_microscope/config.py +++ b/openflexure_microscope/config.py @@ -93,10 +93,10 @@ class OpenflexureConfig(): type(value) is dict): # Create the file if it doesn't exist - self.initialise_file(value) + self.initialise_file(self.raw_config[key]) self.save_yaml_file(self.raw_config[key], value) else: - self.raw_config = value + self.raw_config[key] = value def load_yaml_file(self, config_path) -> dict: