Fixed issue #42

This commit is contained in:
Joel Collins 2019-02-11 10:00:44 +00:00
parent bf829aae46
commit 1bbe234749
2 changed files with 4 additions and 4 deletions

View file

@ -60,7 +60,7 @@ def json_map(data, clean_keys=True):
"""
# Do not overwrite original data dictionary
d = copy.copy(data)
d = copy.deepcopy(data)
# If we're cleaning up unsuitable keys
if clean_keys:

View file

@ -231,14 +231,14 @@ class Microscope(object):
return self.rc.read(json_safe=json_safe)
def save_config(self):
def save_config(self, backup: bool = True):
"""
Saves the current runtime-config back to disk
"""
# Get any changed device settings
self.read_config()
self.read_config(json_safe=False)
# Save to disk
self.rc.save()
self.rc.save(backup=backup)
@property
def config(self) -> dict: