From cf167b7995721b4f7475e76ed2cfa4b2417e84d0 Mon Sep 17 00:00:00 2001 From: mancini <mancini@astron.nl> Date: Wed, 7 Oct 2020 10:17:26 +0200 Subject: [PATCH] Add convenience utility to format paths Former-commit-id: acf580e103a42062d2672eafc8321f89e86cd165 [formerly 746f3d4dd5a0399a90d6186f91c02a1eae7a3aa9] Former-commit-id: 97d4f3a9a2d8e66d8a06a5324f020e78b8e98aba Former-commit-id: 2535cc7e631bbc941074532c57a1a372641e029e --- lofar-cwl/steps/utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lofar-cwl/steps/utils.js b/lofar-cwl/steps/utils.js index d58c1eec..711c00ab 100644 --- a/lofar-cwl/steps/utils.js +++ b/lofar-cwl/steps/utils.js @@ -22,3 +22,9 @@ function get_losoto_config(step_name) { } return par } + +function concatenate_path(object_list){ + object_list.forEach(function (x, index, arr) {arr[index] = x.path;}); + return '[' + object_list.join(',') + ']' + +} \ No newline at end of file -- GitLab