Skip to content
Snippets Groups Projects
Commit 0964b072 authored by Mick Veldhuis's avatar Mick Veldhuis
Browse files

Merge branch 'make-sasid-optional' into 'main'

Make SASID an optional parameter

See merge request !11
parents f5e8011b 8ca9f85d
No related branches found
No related tags found
1 merge request!11Make SASID an optional parameter
Pipeline #101426 passed
{
"msin": [
{
"class": "Directory",
"path": "/var/scratch/veldhuis/data/raw/L888536_SAP000_SB026_uv.MS"
}
],
"demix_timestep": 10,
"demix_freqstep": 64,
"avg_timestep": 1,
"avg_freqstep": 4
}
......@@ -8,7 +8,7 @@ doc: |
inputs:
- id: sasid
type: string
type: string?
doc: SAS process identifier
- id: msin
type: Directory[]
......@@ -159,7 +159,13 @@ steps:
source: dysco_weightbitrate
- id: msout_name
source: msin
valueFrom: $("L" + inputs.sasid + self.basename.slice(self.basename.indexOf("_")))
valueFrom: |
${
if (inputs.sasid === undefined || inputs.sasid === null || inputs.sasid.trim().length === 0) {
return self.basename;
}
return "L" + inputs.sasid + self.basename.slice(self.basename.indexOf("_"));
}
- id: dp3_checkparset
source: dp3_checkparset
- id: dp3_numthreads
......@@ -182,4 +188,3 @@ requirements:
- class: InlineJavascriptRequirement
- class: ScatterFeatureRequirement
- class: StepInputExpressionRequirement
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment