@@ -1572,7 +1572,7 @@ def get_indices_at_coords(self, coords: Sequence[float]) -> tuple:
15721572 indices = np .floor ((coords_array - lower_left ) / spacing ).astype (int )
15731573 return tuple (int (i ) for i in indices [:ndim ])
15741574
1575- def _write_vtk_hdf5 (self , filename , datasets , volume_normalization ) :
1575+ def _write_vtk_hdf5 (self , filename : PathLike , datasets : dict | None , volume_normalization : bool ) -> None :
15761576 """Write RegularMesh as VTKHDF StructuredGrid format."""
15771577 dims = self .dimension
15781578 ndim = len (dims )
@@ -1880,7 +1880,7 @@ def get_indices_at_coords(self, coords: Sequence[float]) -> tuple[int, int, int]
18801880
18811881 return tuple (indices )
18821882
1883- def _write_vtk_hdf5 (self , filename , datasets , volume_normalization ) :
1883+ def _write_vtk_hdf5 (self , filename : PathLike , datasets : dict | None , volume_normalization : bool ) -> None :
18841884 """Write RectilinearMesh as VTK-HDF5 StructuredGrid format.
18851885
18861886 Note: vtkRectilinearGrid is not part of the VTKHDF spec yet, so
@@ -2402,7 +2402,7 @@ def _convert_to_cartesian(arr, origin: Sequence[float]):
24022402 arr [..., 2 ] += origin [2 ]
24032403 return arr
24042404
2405- def _write_vtk_hdf5 (self , filename , datasets , volume_normalization ) :
2405+ def _write_vtk_hdf5 (self , filename : PathLike , datasets : dict | None , volume_normalization : bool ) -> None :
24062406 """Write CylindricalMesh as VTK-HDF5 StructuredGrid format."""
24072407 nr , nphi , nz = self .dimension
24082408 vertex_dims = [nr + 1 , nphi + 1 , nz + 1 ]
@@ -2819,7 +2819,7 @@ def get_indices_at_coords(self, coords: Sequence[float]) -> tuple:
28192819 "get_indices_at_coords is not yet implemented for SphericalMesh"
28202820 )
28212821
2822- def _write_vtk_hdf5 (self , filename , datasets , volume_normalization ) :
2822+ def _write_vtk_hdf5 (self , filename : PathLike , datasets : dict | None , volume_normalization : bool ) -> None :
28232823 """Write SphericalMesh as VTK-HDF5 StructuredGrid format."""
28242824 nr , ntheta , nphi = self .dimension
28252825 vertex_dims = [nr + 1 , ntheta + 1 , nphi + 1 ]
0 commit comments