avoid warning due to change in default parameter

This commit is contained in:
Martin Diehl 2020-01-12 19:21:16 +01:00
parent 19e88df571
commit 70b73762ed
1 changed files with 1 additions and 1 deletions

View File

@ -880,7 +880,7 @@ class DADF5():
else:
nodes = vtk.vtkPoints()
with h5py.File(self.fname) as f:
with h5py.File(self.fname,'r') as f:
nodes.SetData(numpy_support.numpy_to_vtk(f['/geometry/x_n'][()],deep=True))
vtk_geom = vtk.vtkUnstructuredGrid()