sdynpy.fileio.sdynpy_dataphysics.read_dataphysics_output

read_dataphysics_output(file: os.PathLike | h5py._hl.files.File | dict, coordinate: sdynpy.core.sdynpy_coordinate.CoordinateArray | None = None)[source]

Reads a Data Physics .mat or .uff file and converts it into a SDYNPY timehistory array object.

Parameters
  • file (os.PathLike | h5py.File | dict) – Path to a .mat file (can be legacy .mat or v7.3) or a .uff file Alternatively, can be an h5py.File object or a dict created using scipy.io.loadmat

  • coordinate (CoordinateArray, optional) – sdynpy coordinate array. If not provided, will attempt to determine coordinate nodes/directions using ChanName from the .mat file or comment4 from the .uff/.unv file.

Returns

Time history array object.

Return type

TimeHistoryArray