uvex_transients.simulation.core.SurveySimulator.get_cut#
- classmethod SurveySimulator.get_cut(name: str)[source]#
Return the function of a registered cut, without running it.
A caller that applies cuts many times (such as a sampler that counts detections) uses this instead of run_cut, which logs every call, and can read the parameters a cut takes from the signature of the result.
- Parameters:
name (
str) – One of available_cuts.- Returns:
The cut, to be called as
cut(simulator, catalog, mission, **params).- Return type:
callable- Raises:
ValueError – If name is not a registered cut.