|
@@ -80,7 +80,8 @@
|
|
|
" cfg_local = json.load(json_file)\n",
|
|
|
"\n",
|
|
|
"for key in cfg.keys():\n",
|
|
|
- " cfg[key].update(cfg_local[key])\n",
|
|
|
+ " if key in cfg_local: # only update if the key exists in the local config, otherwise keep default (important for backward compatibility with cfg files before microphones)\n",
|
|
|
+ " cfg[key].update(cfg_local[key])\n",
|
|
|
"cfg['experiment']['experiment_date'] = datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S')\n",
|
|
|
"\n",
|
|
|
"# print loaded settings\n",
|