uvex_transients.simulation.core.SurveySimulator.run_action#
- SurveySimulator.run_action(name: str, mission: Mission, **inputs_and_params) object[source]#
Run one @action-registered pipeline action by name.
A thin dispatch layer over run_photometry_action/run_event_summary_action (and any further
@action-decorated methods a subclass adds), mirroring run_cut’s relationship to available_cuts, so a config-driven caller (see uvex_transients.cli.steps) can select an action by name rather than hardcoding which Python method to call.- Parameters:
name (
str) – One of available_actions.mission (
m4opt.missions.Mission) – The mission whose detector(s)/bandpasses the action evaluates against.**inputs_and_params – Forwarded to the underlying action method as keyword arguments: both its named artifact inputs (e.g. catalog for
"photometry"; catalog, raw, exposure, photometry for"event_summary") and its own parameters (e.g. bands, n_sigma).
- Returns:
Whatever the underlying action method returns (an EventCatalog-adjacent artifact, a ~astropy.table.QTable, …); the type is declared by the action itself, not by this dispatcher.
- Return type:
- Raises:
ValueError – If name isn’t registered.
TypeError – If inputs_and_params doesn’t match the underlying action method’s own signature (an unknown or missing keyword).