get_single_spectral_type#
- skysim.query.get_single_spectral_type(spectral_type, acceptable_types)[source]#
Process a SIMBAD spectral type into one of
acceptable_typesorFALLBACK_SPECTRAL_TYPE.- Parameters:
- spectral_type
str The spectral type as given by SIMBAD.
- acceptable_types
collections.abc.Collection[str] Collection of acceptable spectral types.
- spectral_type
- Returns:
strThe best match to
acceptable_typesorFALLBACK_SPECTRAL_TYPE.