uvex_transients.cli.pipeline.run_cut_steps#

uvex_transients.cli.pipeline.run_cut_steps(config: RunConfig, catalog: EventCatalog, step_ids: list[str] | None = None) → EventCatalog[source]#

Chain one or more of the config’s declared cut-type steps against an externally supplied catalog.

Ad hoc, single-catalog use (the cut CLI command) – unlike steps.run_steps, this ignores each step’s own configured input: (which names a place in the full steps: graph) and instead threads catalog through every selected step in turn.

Parameters:
  • config (RunConfig) – The parsed run-config.

  • catalog (EventCatalog) – The catalog to filter.

  • step_ids (list of str, optional) – Which of config.steps’ cut-type step ids to run, and in what order. If None (the default), runs every declared cut step, in declared order.

Returns:

The filtered catalog.

Return type:

EventCatalog

Raises:

ValueError – If a name in step_ids isn’t a declared step, or names a non-cut step.