RunTransformsV2Pipeline Command
Overview
RunTransformsV2Pipeline runs a saved TransformsV2 PipelineDescriptor JSON file over an entire DataManager input key. I/O keys are specified in command parameters, not in the pipeline JSON. This mirrors the TransformsV2 widget execution path and is intended for headless batch workflows via DataManagerPipelineRunner.
Source Files
| File | Role |
|---|---|
src/TransformsV2/Commands/RunTransformsV2Pipeline.hpp |
Command + params struct |
src/TransformsV2/Commands/RunTransformsV2Pipeline.cpp |
execute() implementation |
src/TransformsV2/Commands/RunTransformsV2PipelineUIHints.hpp |
ParameterUIHints |
src/TransformsV2/Commands/TransformsV2PipelineOutput.hpp |
Shared output storage helpers |
Parameters
struct RunTransformsV2PipelineParams {
std::string input_key;
std::string output_key;
std::string pipeline_path;
std::string output_time_key; // empty = inherit from input_key
};| Field | Description |
|---|---|
input_key |
DataManager key of the full source object |
output_key |
DataManager key where results are stored (always replaced) |
pipeline_path |
Path to a library-format pipeline JSON file |
output_time_key |
Optional TimeFrame key for output; leave empty to inherit from input_key |
Execution Flow
- Validate parameters; require
input_keyin DataManager. - Resolve output
TimeKeyfromoutput_time_keyor inherit frominput_key. loadPipelineFromFile(pipeline_path)builds a typedTransformPipeline.executePipeline(full_input, pipeline)runs transforms on the entire object.setData(output_key, result, time_key)replaces any existing output (widget semantics).
Container transforms such as SincInterpolation change sample count without managing TimeFrames. Pair them with a pre-registered upsampled TimeFrame via output_time_key (often created by UpsampleTimeFrame in the same command sequence).
Terminal range_reduction entries in the JSON are loaded but not applied by executePipeline (same behavior as the TransformsV2 widget).
CLI Example
{
"commands": [
{
"command_name": "UpsampleTimeFrame",
"parameters": {
"source_time_key": "camera_time",
"output_time_key": "camera_time_4x",
"upsampling_factor": 4
}
},
{
"command_name": "RunTransformsV2Pipeline",
"parameters": {
"input_key": "lfp",
"output_key": "lfp_upsampled",
"output_time_key": "camera_time_4x",
"pipeline_path": "/path/to/sinc_upsample.json"
}
}
]
}