redback.utils.sncosmo_bandname_from_band
- redback.utils.sncosmo_bandname_from_band(bands, warning_style='softest')[source]
Convert redback data band names to sncosmo compatible band names
- Parameters:
bands (list[str]) – List of bands.
warning_style – How to handle warnings. ‘soft’ will raise a warning, ‘hard’ will raise an error.
- Returns:
An array of sncosmo compatible bandnames associated with the given bands.
- Return type:
np.ndarray