Skip to content

Commit

Permalink
Added CB params file in BoutiquesTaskLogsCopier
Browse files Browse the repository at this point in the history
  • Loading branch information
prioux committed Apr 10, 2024
1 parent 3442f2d commit 7cca7d2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion BrainPortal/lib/boutiques_task_logs_copier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
# "runtime": "blah/blah/runtime.kv",
# "descriptor": "blah/blah/descriptor.json",
# "invoke": "blah/blah/params.json",
# "jobscript": "blah/blah/cbrain_script.sh"
# "jobscript": "blah/blah/cbrain_script.sh",
# "cbrain_params": "blah/blah/cbparams.json"
# }
# }
# }
Expand Down Expand Up @@ -105,6 +106,12 @@ def save_results
# Copy sbatch/qsub script
install_std_log_file(science_script_basename, destpaths[:jobscript], "jobscript")

# Create then copy the cbrain params file, if needed
if destpaths[:cbrain_params].present?
File.open(".cbrain_params.json","w") { |fh| fh.write JSON.pretty_generate(self.params) }
install_std_log_file(".cbrain_params.json", destpaths[:cbrain_params], "cbrain parameters")
end

# Performs standard processing
super
end
Expand Down

0 comments on commit 7cca7d2

Please sign in to comment.