pyvista_zstd.DataSetMetadata.from_dataset

pyvista_zstd.DataSetMetadata.from_dataset#

classmethod DataSetMetadata.from_dataset(ds: DataSet, point_info: dict[str, ArrayInfo], cell_info: dict[str, ArrayInfo], field_info: dict[str, ArrayInfo], fixed_cell_sizes: dict[str, int], *, uid: str, point_active: tuple[str | None, str | None, str | None, str | None] | None = None, cell_active: tuple[str | None, str | None, str | None, str | None] | None = None, celltypes_dtype: str | None = None) → DataSetMetadata#

Create metadata from a dataset.

point_active and cell_active name the active scalars, vectors, normals and texture coordinates; left out, they are read from ds.