Skip to content
Snippets Groups Projects
Commit f178ce66 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

[black]

parent afbe3b9e
No related branches found
No related tags found
2 merge requests!185Wrappers and aggregators,!180[dask] Preparing bob.bio.base for dask pipelines
...@@ -175,14 +175,14 @@ def vanilla_biometrics(pipeline, database, dask_client, groups, output, **kwargs ...@@ -175,14 +175,14 @@ def vanilla_biometrics(pipeline, database, dask_client, groups, output, **kwargs
if dask_client is not None: if dask_client is not None:
result = result.compute(scheduler=dask_client) result = result.compute(scheduler=dask_client)
else: else:
logger.warning( logger.warning("`dask_client` not set. Your pipeline will run locally")
"`dask_client` not set. Your pipeline will run locally"
)
result = result.compute(scheduler="single-threaded") result = result.compute(scheduler="single-threaded")
# Check if there's a score writer hooked in # Check if there's a score writer hooked in
if hasattr(pipeline.biometric_algorithm, "score_writer"): if hasattr(pipeline.biometric_algorithm, "score_writer"):
pipeline.biometric_algorithm.score_writer.concatenate_write_scores(result, score_file_name) pipeline.biometric_algorithm.score_writer.concatenate_write_scores(
result, score_file_name
)
else: else:
with open(score_file_name, "w") as f: with open(score_file_name, "w") as f:
# Flatting out the list # Flatting out the list
......
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