save_result

glotaran.plugin_system.project_io_registration.save_result(result: Result, result_path: str | PathLike[str], format_name: str = None, *, allow_overwrite: bool = False, **kwargs: Any) None[source]

Write a Result instance to a spec file.

Parameters
  • result (Result) – Result instance to write.

  • result_path (str | PathLike[str]) – Path to write the result data to.

  • format_name (str) – Format the result should be saved in, if not provided and it is a file it will be inferred from the file extension.

  • allow_overwrite (bool) – Whether or not to allow overwriting existing files, by default False

  • **kwargs (Any) – Additional keyword arguments passes to the save_result implementation of the project io plugin.