Skip to content
Snippets Groups Projects
Commit f1e4d06d authored by Karim Ahmed's avatar Karim Ahmed
Browse files

run autopep8

parent 99b7000c
No related branches found
No related tags found
1 merge request!610Add a pytest to run a dict of CALLAB test runs before releases
...@@ -113,7 +113,8 @@ def validate_constant_file( ...@@ -113,7 +113,8 @@ def validate_constant_file(
return result, test_file return result, test_file
def parse_config(cmd: List[str], config: Dict[str, Any], out_folder: str) -> List[str]: def parse_config(cmd: List[str], config: Dict[str, Any],
out_folder: str) -> List[str]:
"""Convert a dictionary to a list of arguments. """Convert a dictionary to a list of arguments.
Values that are not strings will be cast. Values that are not strings will be cast.
...@@ -210,7 +211,8 @@ def test_xfel_calibrate( ...@@ -210,7 +211,8 @@ def test_xfel_calibrate(
cal_conf["report-to"] = report_name cal_conf["report-to"] = report_name
out_folder = pathlib.Path( out_folder = pathlib.Path(
cal_conf["out-folder"].format(out_dir_base, cal_conf["karabo-id"], test_key) cal_conf["out-folder"].format(out_dir_base,
cal_conf["karabo-id"], test_key)
) )
cmd = parse_config(cmd, cal_conf, out_folder) cmd = parse_config(cmd, cal_conf, out_folder)
...@@ -279,7 +281,8 @@ def test_xfel_calibrate( ...@@ -279,7 +281,8 @@ def test_xfel_calibrate(
if cal_type.lower() == "correct": if cal_type.lower() == "correct":
with multiprocessing.Pool() as pool: with multiprocessing.Pool() as pool:
result = pool.starmap( result = pool.starmap(
validate_h5files, zip(h5files, len(h5files) * [reference_folder]) validate_h5files, zip(
h5files, len(h5files) * [reference_folder])
) )
else: # "dark" else: # "dark"
validate_files = partial( validate_files = partial(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment