fedoo.read_data
- read_data(filename: str, file_format: str = 'fdz')
Read a file from disk.
The file may be a single file or a directory containing files from several iterations. The file format may be specified either by the filename extension or by the
file_formatparameter (default is"fdz") when the filename has no extension.Supported file formats are
"fdz","vtk", and"npz". For"npz"files, a VTK mesh with the same base name is also searched.- Parameters:
filename (str) – Path to the file or directory to read.
file_format (str, optional) – File format identifier to use when the filename has no extension. Default is
"fdz".
- Returns:
The loaded dataset.
- Return type: