lcdata.schema.find_alias

lcdata.schema.find_alias(names, aliases)

Given a list of names, find the one that matches a list of aliases.

Inspired by and very similar to sncosmo.alias_map.

Parameters
  • names (list[str]) – List of names that are available

  • aliases (list[str]) – List of aliases to search through. The first one that is available will be returned.

Returns

alias – Matching alias is one was found, or None otherwise.

Return type

str or None