save_parameters

glotaran.plugin_system.project_io_registration.save_parameters(parameters: ParameterGroup, file_name: str | PathLike[str], format_name: str = None, *, allow_overwrite: bool = False, **kwargs: Any) None[source]

Save a ParameterGroup instance to a spec file.

Parameters
  • parameters (ParameterGroup) – ParameterGroup instance to save to specs file.

  • file_name (str | PathLike[str]) – File to write the parameter specs to.

  • format_name (str) – Format the file should be in, if not provided 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_parameters implementation of the project io plugin.