writePipetaskCmd

lsst.ts.wep.utils.writePipetaskCmd(repoDir, runName, instrument, collections, taskName=None, pipelineYaml=None)

Format a command line call to run a Gen 3 pipeline task. Can also be a set of tasks if specified in a pipeline yaml file.

Parameters

repoDir: str

Location of Gen 3 repository.

runName: str

Name of collection for data produced by the task.

instrument: str

The instrument to use for the task.

collections: str

The data collections needed for the task.

taskName: str, optional

Full task function name in lsst namespace. One of taskName or pipelineYaml must be specified to run. (The default is None).

pipelineYaml: str, optional

Yaml file that specifies a pipeline configuration to run instead of a single task. (The default is None.)

Returns

str

Pipetask run command.

Raises

ValueError

Need to at least specify name of task or name of pipeline file.