parsnip.preprocess_light_curve

parsnip.preprocess_light_curve(light_curve, settings, raise_on_invalid=True, ignore_missing_redshift=False)

Preprocess a light curve for the ParSNIP model

Parameters:
  • light_curve (Table) – Raw light curve

  • settings (dict) – ParSNIP model settings

  • raise_on_invalid (bool) – Whether to raise a ValueError for invalid light curves. If False, None is returned instead. By default, True.

  • ignore_missing_redshift (bool) – Whether to ignore missing redshifts, by default False. If False, a missing redshift value will cause a light curve to be invalid.

Returns:

Preprocessed light curve

Return type:

Table

Raises:

ValueError – For any invalid light curves that cannot be handled by ParSNIP if raise_on_invalid is True. The error message will describe why the light curve is invalid.