Compare commits

...

3 commits

Author SHA1 Message Date
Justus Kuhlmann
498f986de7 better replacements 2025-09-02 10:25:49 +00:00
Justus Kuhlmann
e259a21d39 Add K_1 and K_V0 2025-09-02 10:24:40 +00:00
Justus Kuhlmann
d2ebb0baa9 [DATALAD] Added subdataset 2025-07-09 08:03:04 +00:00
4 changed files with 13 additions and 6 deletions

5
.gitmodules vendored Normal file
View 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

View file

@ -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] = {}

View file

@ -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

@ -0,0 +1 @@
Subproject commit 216fe4ed3467ed486390735f8072856cf3d0a409