Compare commits
No commits in common. "54006f46f5fb8069bcd84a87607bca4abf967c5b" and "029239c701359e84cadb8c093ebd0ccc26d4f9df" have entirely different histories.
54006f46f5
...
029239c701
2 changed files with 4 additions and 32 deletions
|
|
@ -190,11 +190,6 @@ 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.
|
||||
files: list[str]
|
||||
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)
|
||||
|
|
@ -264,11 +259,6 @@ 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.
|
||||
files: list[str]
|
||||
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)
|
||||
|
|
@ -299,7 +289,7 @@ def extract_t1(path: str, project: str, dir_in_project: str, param: dict[str, An
|
|||
for k in ["integrator", "eps", "ntot", "dnms"]:
|
||||
par_list.append(str(param[k]))
|
||||
pars = "/".join(par_list)
|
||||
t1_dict: dict[str, Any] = {}
|
||||
t1_dict[param["type"]] = {}
|
||||
t1_dict[param["type"]][pars] = t0
|
||||
return t1_dict
|
||||
t0_dict: dict[str, Any] = {}
|
||||
t0_dict[param["type"]] = {}
|
||||
t0_dict[param["type"]][pars] = t0
|
||||
return t0_dict
|
||||
|
|
|
|||
|
|
@ -229,24 +229,6 @@ def _map_params(params: dict[str, Any], spec_list: list[str]) -> dict[str, Any]:
|
|||
|
||||
|
||||
def get_specs(key: str, parameters: dict[str, Any], sep: str = '/') -> str:
|
||||
"""
|
||||
Get sepcification from the parameter file for a specific key in the read measurements
|
||||
|
||||
Parameters
|
||||
----------
|
||||
key: str
|
||||
The key for whioch the parameters are to be looked up.
|
||||
parameters: dict[str, Any]
|
||||
The dictionary with the parameters from the parameter file.
|
||||
sep: str
|
||||
Separator string for the key. (default="/")
|
||||
|
||||
Return
|
||||
------
|
||||
s: str
|
||||
json string holding the parameters.
|
||||
"""
|
||||
|
||||
key_parts = key.split(sep)
|
||||
if corr_types[key_parts[0]] == 'bi':
|
||||
param = _map_params(parameters, key_parts[1:-1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue