fedoo.MultiFrameDataSet.load

MultiFrameDataSet.load(data=-1, load_mesh=False)

Load data from a data object.

This method replace the current data with new data. The old data are erased.

Parameters:
  • data (dict or DataSet or pyvista.UnstructuredGrid or str) –

    Input data to load.

    • dict :

      Load data using the load_dict method.

    • DataSet :

      Load data from another DataSet object without copying.

    • pyvista.UnstructuredGrid :

      Load data from a PyVista UnstructuredGrid object without copy.

    • str :

      Path to a data file. Supported file extensions are 'vtk', 'msh', 'fdz', and 'npz'.

  • load_mesh (bool, optional) – If True, the mesh is loaded from the file (when the file contains a mesh). If False, only the data are loaded. Default is False.

  • iteration (int, optional) – Iteration index to load when data refers to an fdz file.