Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# task_spatial_simulators dev

Minor changes:
- `run_benchmark`: write the commit the workflow ran from into `task_info.yaml`,
so a published result can be traced back to the code that produced it. Until
now `task_info.yaml` was a verbatim copy of `_viash.yaml`, whose `version` is
the revision (`build_main`) rather than a commit.

Bug fixes:
- `downstream`: normalise the simulated dataset the same way as the real one,
through a new `compute_logcounts()` helper. The simulated side used
Expand Down
9 changes: 8 additions & 1 deletion src/workflows/run_benchmark/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,14 @@ 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")
// store the task info in a file
def task_info = readYaml(meta.resources_dir.resolve("_viash.yaml"))
// commitId is null when nextflow runs from a local checkout instead of a revision
if (workflow.commitId) {
task_info.commit = workflow.commitId
}
def task_info_file = tempFile("task_info.yaml")
task_info_file.write(toYamlBlob(task_info))

// store the scores in a file
def score_uns = states.collect{it.score_uns}
Expand Down
Loading