[params] fix default import

This commit is contained in:
Noe Brucy
2021-07-25 10:50:07 +02:00
parent 398e376fc9
commit 4f2bd29057
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -39,5 +39,7 @@ def default_params():
def load_params(filename): def load_params(filename):
basic_params = default_params() basic_params = default_params()
new_params = params_from_file(filename) new_params = params_from_file(filename)
basic_params.update(new_params) for key in new_params:
if key in basic_params:
basic_params[key].update(new_params[key])
return basic_params return basic_params
+1
View File
@@ -11,6 +11,7 @@ plot : # Plot parameters
time_fmt : "time = {:.3g} {}" # Time format string, 1st field is time and 2nd is unit time_fmt : "time = {:.3g} {}" # Time format string, 1st field is time and 2nd is unit
rcParams: # Anything there will be passed to matplotlib's rcParams rcParams: # Anything there will be passed to matplotlib's rcParams
{} # remove and replace by rcParams keys
disk: # Disk speficic parameters disk: # Disk speficic parameters
enable : False # Enable specific disk analysis enable : False # Enable specific disk analysis