uvex_transients.cli.steps.apply_cut_scoped#

uvex_transients.cli.steps.apply_cut_scoped(simulator, cut_name: str, catalog: EventCatalog, mission, transient_types: list[str] | None, **params) → EventCatalog[source]#

Run a cut step, optionally restricted to a subset of transient_type values.

Generic at the executor level (not inside any individual @cut method, per SurveySimulator.run_cut’s own docstring): with transient_types given, only rows whose transient_type is in that list are evaluated against the cut; every other row passes through unchanged, regardless of what the cut would have done to it.

Parameters:
  • simulator (SurveySimulator) – Supplies ~uvex_transients.simulation.core.SurveySimulator.run_cut.

  • cut_name (str) – One of ~uvex_transients.simulation.core.SurveySimulator.available_cuts.

  • catalog (EventCatalog) – The catalog to filter.

  • mission (m4opt.missions.Mission) – Forwarded to run_cut.

  • transient_types (list of str, optional) – If given, restricts the cut to rows with a matching transient_type; other rows are kept untouched. None runs the cut over the whole catalog, exactly like calling run_cut directly.

  • **params – Forwarded to run_cut.

Returns:

The filtered catalog.

Return type:

EventCatalog