Skip to content

Commit

Permalink
Merge pull request #794 from ratt-ru/sofia2_params
Browse files Browse the repository at this point in the history
Sofia2 params
  • Loading branch information
SpheMakh authored Mar 4, 2025
2 parents 70dc7a2 + 03f60b4 commit b9d2007
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
15 changes: 2 additions & 13 deletions stimela/cargo/cab/sofia2/parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"parameters": [
{
"info": "If set to true, the pipeline will terminate with an error message if an unknown parameter name is encountered in the input parameter file. If set to false, unknown parameters will instead be ignored.",
"dtype": "bool",
"dtype": "bool",
"default": true,
"name": "pipeline.pedantic"
},
Expand Down Expand Up @@ -501,18 +501,7 @@
"sum",
"mean"
],
"name": "reliability.parameters",
"choices": [
"peak",
"sum",
"mean",
"chan",
"pix",
"fill",
"std",
"skew",
"kurt"
]
"name": "reliability.parameters"
},
{
"info": "If set to true, diagnostic plots (in EPS format) will be created to allow the quality of the reliability estimation to be assessed. It is advisable to generate and inspect these plots to ensure that the outcome of the reliability filtering procedure is satisfactory.",
Expand Down
6 changes: 6 additions & 0 deletions stimela/cargo/cab/sofia2/src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
elif (not name == 'port2tigger'):
value = 'false'

if dtype == 'list:str' and value is not None:
try:
value = ",".join(map(str, value)) # Flatten the list into a string
except ValueError:
pass

if value is None:
continue
if name == "port2tigger":
Expand Down

0 comments on commit b9d2007

Please sign in to comment.