save_domain#

save_domain(domain_to_save, path_to_save=None, name_of_domain=None, save_summary=True, notes=None)#

Save a domain object to a file. The domain object is saved as a pickle file.

Parameters:
domain_to_savemuspan.domain

The domain object to be saved.

path_to_savestr or None, optional

Path to the folder to save the domain in. Defaults to None.

name_of_domainstr or None, optional

Name of the domain file. If None, the domain’s name is used. Defaults to None.

save_summarybool, optional

If True, prints a summary message after saving. Defaults to True.

Raises:
ValueError

If the input domain is not of the correct type. If the input path to save is not of the correct type. If the input name of domain is not of the correct type.