uvex_transients.simulation.core.cut#

uvex_transients.simulation.core.cut(name: str)[source]#

Mark a SurveySimulator method as a named, registrable screening cut.

Applied to SurveySimulator.filter_by_limiting_magnitude/filter_by_snr below; SurveySimulator.run_cut/available_cuts dispatch by this name rather than by the method’s own Python name, so a config-driven caller (see uvex_transients.cli) never needs to hardcode either one.

Parameters:

name (str) – The registry key this method should be reachable under.

Returns:

A decorator that tags the method with name and returns it unchanged.

Return type:

Callable