mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-11-30 13:06:53 +01:00
lint
This commit is contained in:
parent
e4b379fe7e
commit
a5b746468b
1 changed files with 4 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ import itertools
|
||||||
|
|
||||||
sep = "/"
|
sep = "/"
|
||||||
|
|
||||||
|
|
||||||
def read_sfcf(path, prefix, name, quarks='.*', corr_type="bi", noffset=0, wf=0, wf2=0, version="1.0c", cfg_separator="n", cfg_func=None, silent=False, **kwargs):
|
def read_sfcf(path, prefix, name, quarks='.*', corr_type="bi", noffset=0, wf=0, wf2=0, version="1.0c", cfg_separator="n", cfg_func=None, silent=False, **kwargs):
|
||||||
"""Read sfcf files from given folder structure.
|
"""Read sfcf files from given folder structure.
|
||||||
|
|
||||||
|
|
@ -244,7 +245,6 @@ def read_sfcf_multi(path, prefix, name_list, quarks_list=['.*'], corr_type_list=
|
||||||
for key in needed_keys:
|
for key in needed_keys:
|
||||||
internal_ret_dict[key] = []
|
internal_ret_dict[key] = []
|
||||||
|
|
||||||
|
|
||||||
def _default_idl_func(cfg_string, cfg_sep):
|
def _default_idl_func(cfg_string, cfg_sep):
|
||||||
return int(cfg_string.split(cfg_sep)[-1])
|
return int(cfg_string.split(cfg_sep)[-1])
|
||||||
|
|
||||||
|
|
@ -417,6 +417,7 @@ def read_sfcf_multi(path, prefix, name_list, quarks_list=['.*'], corr_type_list=
|
||||||
result_dict[name][quarks][str(off)][str(w)][str(0)] = result
|
result_dict[name][quarks][str(off)][str(w)][str(0)] = result
|
||||||
return result_dict
|
return result_dict
|
||||||
|
|
||||||
|
|
||||||
def _lists2key(*lists):
|
def _lists2key(*lists):
|
||||||
keys = []
|
keys = []
|
||||||
for tup in itertools.product(*lists):
|
for tup in itertools.product(*lists):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue