Skip to content

Commit

Permalink
Merge pull request #116 from naobservatory/harmon_fix_copying_file_bug
Browse files Browse the repository at this point in the history
Fixing bug that's causing a fatal error in master pipeline.
  • Loading branch information
willbradshaw authored Nov 27, 2024
2 parents b75ddc6 + 59851ff commit 829e2d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions workflows/run.nf
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ workflow RUN {
time_ch = Channel.of(start_time_str + "\n").collectFile(name: "time.txt")
version_ch = Channel.fromPath("${projectDir}/pipeline-version.txt")
index_params_ch = Channel.fromPath("${params.ref_dir}/input/index-params.json")
.map { file -> file.copyTo("${workDir}/params-index.json") }
.map { file -> file.copyTo("${params.base_dir}/work/params-index.json") }
index_pipeline_version_ch = Channel.fromPath("${params.ref_dir}/logging/pipeline-version.txt")
.map { file -> file.copyTo("${workDir}/pipeline-version-index.txt") }
.map { file -> file.copyTo("${params.base_dir}/work/pipeline-version-index.txt") }
publish:
// Saved inputs
index_params_ch >> "input"
Expand Down
4 changes: 2 additions & 2 deletions workflows/run_validation.nf
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ workflow RUN_VALIDATION {
time_ch = Channel.of(start_time_str + "\n").collectFile(name: "time.txt")
version_ch = Channel.fromPath("${projectDir}/pipeline-version.txt")
index_params_ch = Channel.fromPath("${params.ref_dir}/input/index-params.json")
.map { file -> file.copyTo("${workDir}/params-index.json") }
.map { file -> file.copyTo("${params.base_dir}/work/params-index.json") }
index_pipeline_version_ch = Channel.fromPath("${params.ref_dir}/logging/pipeline-version.txt")
.map { file -> file.copyTo("${workDir}/pipeline-version-index.txt") }
.map { file -> file.copyTo("${params.base_dir}/work/pipeline-version-index.txt") }
publish:
// Saved inputs
index_params_ch >> "input"
Expand Down

0 comments on commit 829e2d4

Please sign in to comment.