AmbiguousNameWarning

exception glotaran.project.project_registry.AmbiguousNameWarning(*, item_name: str, items: dict[str, Path], item_key: str, unique_item_key: str, project_root_path: Path)[source]

Warning thrown when an item with the same name already exists.

This is the case if two files with the same name but different extensions exist next to each other.

Initialize AmbiguousNameWarning with a formatted message.

Parameters:
  • item_name (str) – Name of items in the registry (e.g. ‘Parameters’).

  • items (dict[str, Path]) – Known items at this iteration point.

  • item_key (str) – Key that would have been used if the file names weren’t ambiguous.

  • unique_item_key (str) – Unique key for the item with ambiguous file name.

  • project_root_path (Path) – Root path of the project.