pyiron_base.storage.fileio.write#
- pyiron_base.storage.fileio.write(data: Dict | List, file_name: str) None[source]#
Writes the data to a file.
Format is determined from the file extension as follows - yaml: .yaml, .yml
- Parameters:
data (Union[Dict, List]) – data to save to file, dictionary keys must be str!
file_name (str) – file name, extension defines which format is used
- Raises:
ValueError – if given filename doesn’t have one of the specified extensions