fedoo.read_data

read_data(filename: str, file_format: str = 'fdz')

Read a file from a disk.

The file may be a directory containing files from several iterations. The file format may be specified in the filename extension or using the file_format parameter (default = fdz) if the filename has no extension.

Available file format are ‘fdz’, ‘vtk’ and ‘npz’. For ‘npz’ a vtk mesh with the same base name is also searched.