magnet.io.create_dataset#
- magnet.io.create_dataset(dataset_path: str, dataset_size: int, extension: str = 'vtk', base_name: str = 'mesh', **kwargs) None #
Create dataset from mesh folder.
- Parameters:
dataset_path (str) – Path of the folder that contains the meshes.
dataset_size (int) – Number of meshes in the folder.
extension (str, optional) – Mesh format extension (default is ‘vtk’).
base_name (str, optional) – Base name of the meshes (default is ‘mesh’).
**kwargs (dict[str, Any]) – Additional keyword arguments to pass to ‘load_mesh’.
- Return type:
None
Notes
The type of mesh (heterogeneous or not) is inferred from the type of the first mesh.