xoa.cf.CFCoordSpecs.match_from_name

CFCoordSpecs.match_from_name(name, cf_name=None, loc=None)

Get the generic CF name of an object knowing only its name

It compares name to the name and alt_names config values.

Parameters:
  • name (str) – Actual name

  • cf_name (str, None) – A target generic CF name. If not provided, all items are considered.

Returns:

None, str, True, False – If cf_name is provided, returns a boolean, else returns the matching CF name or None.