comment retruns of extract t0 and t1
This commit is contained in:
parent
3cd7896ae1
commit
54006f46f5
1 changed files with 14 additions and 4 deletions
|
|
@ -190,6 +190,11 @@ def extract_t0(path: str, project: str, dir_in_project: str, param: dict[str, An
|
||||||
Specific names for the replica of the ensemble the measurement file belongs to.
|
Specific names for the replica of the ensemble the measurement file belongs to.
|
||||||
files: list[str]
|
files: list[str]
|
||||||
Specific files to read.
|
Specific files to read.
|
||||||
|
|
||||||
|
Returns
|
||||||
|
-------
|
||||||
|
t0_dict: dict
|
||||||
|
Dictionary of t0 values in the pycorrlib style, with the parameters at hand.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
dataset = os.path.join(path, "projects", project)
|
dataset = os.path.join(path, "projects", project)
|
||||||
|
|
@ -259,6 +264,11 @@ def extract_t1(path: str, project: str, dir_in_project: str, param: dict[str, An
|
||||||
Specific names for the replica of the ensemble the measurement file belongs to.
|
Specific names for the replica of the ensemble the measurement file belongs to.
|
||||||
files: list[str]
|
files: list[str]
|
||||||
Specific files to read.
|
Specific files to read.
|
||||||
|
|
||||||
|
Returns
|
||||||
|
-------
|
||||||
|
t1_dict: dict
|
||||||
|
Dictionary of t1 values in the pycorrlib style, with the parameters at hand.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
directory = os.path.join(path, "projects", project, dir_in_project)
|
directory = os.path.join(path, "projects", project, dir_in_project)
|
||||||
|
|
@ -289,7 +299,7 @@ def extract_t1(path: str, project: str, dir_in_project: str, param: dict[str, An
|
||||||
for k in ["integrator", "eps", "ntot", "dnms"]:
|
for k in ["integrator", "eps", "ntot", "dnms"]:
|
||||||
par_list.append(str(param[k]))
|
par_list.append(str(param[k]))
|
||||||
pars = "/".join(par_list)
|
pars = "/".join(par_list)
|
||||||
t0_dict: dict[str, Any] = {}
|
t1_dict: dict[str, Any] = {}
|
||||||
t0_dict[param["type"]] = {}
|
t1_dict[param["type"]] = {}
|
||||||
t0_dict[param["type"]][pars] = t0
|
t1_dict[param["type"]][pars] = t0
|
||||||
return t0_dict
|
return t1_dict
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue