Skip to content

Commit

Permalink
fix task_info extraction from _viash in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiWaldrant committed Jul 11, 2024
1 parent c1f9ba1 commit cdd16e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/workflows/run_benchmark/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ workflow run_wf {
def metric_configs_file = tempFile("metric_configs.yaml")
metric_configs_file.write(metric_configs_yaml_blob)

def task_info_file = meta.resources_dir.resolve("_viash.yaml")
def viash_file = meta.resources_dir.resolve("_viash.yaml")
def viash_file_content = toYamlBlob(readYaml(viash_file).info)
def task_info_file = tempFile("task_info.yaml")
task_info_file.write(viash_file_content)

// store the scores in a file
def score_uns = states.collect{it.score_uns}
Expand All @@ -171,7 +174,7 @@ workflow run_wf {
def new_state = [
output_method_configs: method_configs_file,
output_metric_configs: metric_configs_file,
output_task_info: task_info_file.info,
output_task_info: task_info_file,
output_scores: score_uns_file,
_meta: states[0]._meta
]
Expand Down

0 comments on commit cdd16e0

Please sign in to comment.