pyiron_base.storage.fileio.read#
- pyiron_base.storage.fileio.read(file_name: str) Dict | List[source]#
Read data from a file.
Format is determined from the file extension as follows - yaml: .yaml, .yml
- Parameters:
file_name (str) – file name, extension defines which format is used
- Returns:
nested dict/list
- Return type:
Union[Dict, List]
- Raises:
ValueError – if given filename doesn’t have one of the specified extensions