File tree Expand file tree Collapse file tree
src/workflows/run_benchmark Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# task_spatial_simulators dev
22
3+ Minor changes:
4+ - ` run_benchmark ` : write the commit the workflow ran from into ` task_info.yaml ` ,
5+ so a published result can be traced back to the code that produced it. Until
6+ now ` task_info.yaml ` was a verbatim copy of ` _viash.yaml ` , whose ` version ` is
7+ the revision (` build_main ` ) rather than a commit.
8+
39Bug fixes:
410 - ` downstream ` : normalise the simulated dataset the same way as the real one,
511 through a new ` compute_logcounts() ` helper. The simulated side used
Original file line number Diff line number Diff line change @@ -165,7 +165,14 @@ workflow run_wf {
165165 def metric_configs_file = tempFile(" metric_configs.yaml" )
166166 metric_configs_file. write(metric_configs_yaml_blob)
167167
168- def task_info_file = meta. resources_dir. resolve(" _viash.yaml" )
168+ // store the task info in a file
169+ def task_info = readYaml(meta. resources_dir. resolve(" _viash.yaml" ))
170+ // commitId is null when nextflow runs from a local checkout instead of a revision
171+ if (workflow. commitId) {
172+ task_info. commit = workflow. commitId
173+ }
174+ def task_info_file = tempFile(" task_info.yaml" )
175+ task_info_file. write(toYamlBlob(task_info))
169176
170177 // store the scores in a file
171178 def score_uns = states. collect{it. score_uns}
You can’t perform that action at this time.
0 commit comments