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_typevalues.Generic at the executor level (not inside any individual
@cutmethod, per SurveySimulator.run_cut’s own docstring): with transient_types given, only rows whosetransient_typeis 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 (
listofstr, optional) – If given, restricts the cut to rows with a matchingtransient_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