Compare commits
3 commits
5198488810
...
498f986de7
Author | SHA1 | Date | |
---|---|---|---|
|
498f986de7 | ||
|
e259a21d39 | ||
|
d2ebb0baa9 |
4 changed files with 13 additions and 6 deletions
5
.gitmodules
vendored
Normal file
5
.gitmodules
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
[submodule "projects/tmp"]
|
||||
path = projects/tmp
|
||||
url = git@kuhl-mann.de:lattice/charm_SF_data.git
|
||||
datalad-id = 5f402163-77f2-470e-b6f1-64d7bf9f87d4
|
||||
datalad-url = git@kuhl-mann.de:lattice/charm_SF_data.git
|
|
@ -49,6 +49,7 @@ bb_corrs: list = [
|
|||
'f_1',
|
||||
'F1ll',
|
||||
'k_1',
|
||||
'K_1',
|
||||
'F_AA_a',
|
||||
'F_AA_d',
|
||||
'F_AdP_a',
|
||||
|
@ -65,6 +66,7 @@ bb_corrs: list = [
|
|||
|
||||
bib_corrs: list = [
|
||||
'F_V0',
|
||||
'K_V0',
|
||||
]
|
||||
|
||||
corr_types: dict[str, str] = {}
|
||||
|
|
|
@ -29,12 +29,11 @@ def replace_in_meas(measurements: dict, vars: dict[str, str]):
|
|||
for name, value in vars.items():
|
||||
for m in measurements.keys():
|
||||
for key in measurements[m].keys():
|
||||
measurements[m][key] = replace_string(measurements[m][key], name, value)
|
||||
# replace ensemble name
|
||||
for m in measurements.keys():
|
||||
for key in measurements[m].keys():
|
||||
if not key == 'ensemble':
|
||||
measurements[m][key] = replace_string(measurements[m][key], 'ensemble', measurements[m]['ensemble'])
|
||||
if isinstance(measurements[m][key], str):
|
||||
measurements[m][key] = replace_string(measurements[m][key], name, value)
|
||||
elif isinstance(measurements[m][key], list):
|
||||
for i in range(len(measurements[m][key])):
|
||||
measurements[m][key][i] = replace_string(measurements[m][key][i], name, value)
|
||||
return measurements
|
||||
|
||||
def fill_cons(measurements, constants):
|
||||
|
|
1
projects/tmp
Submodule
1
projects/tmp
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 216fe4ed3467ed486390735f8072856cf3d0a409
|
Loading…
Add table
Add a link
Reference in a new issue