CASA task cabs #106
o-smirnov
started this conversation in
Show and tell
Replies: 1 comment
-
As a further twist on this, note that we can do cab specialization. So if, for example, @Athanaseus or @Mulan-94 write us a complete flagsummary:
_use: cabs.casa-flagmanager
inputs:
mode:
implicit: 'summary'
outputs:
percentage:
dtype: float
management:
wranglers:
'Total Flagged: .* Total Counts: .* \((?P<percentage>[\d.]+)%\)':
- PARSE_OUTPUT:percentage:float
- HIGHLIGHT:bold green |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the benefit of @caracal-pipeline/stimelators who want to improve their Stimela-fu, I'm going to highlight some cab examples. Look out for a few more such examples.
Here's an example of using the new
casa-task
flavour to wrap a CASA task:Here's another example. This is a cab that's based on the
flagdata
task, but calls it with a specific set of parameters, and extracts an output value from the output:Things to note:
mode
is implicitly fixed here: it is no longer a user-definable parameter of the cab, but it is passed as a parameter to the underlying task.management.wranglers
can be defined to do all sorts of funky stuff with the console output. In this case, we parse out a percentage value, but also cause the relevant line to be highlighted in green.Beta Was this translation helpful? Give feedback.
All reactions