From aa1383571ef7b0136c5da8fccae6d4e606235442 Mon Sep 17 00:00:00 2001 From: Jon Shimwell Date: Thu, 9 Jan 2025 10:28:18 +0100 Subject: [PATCH] review improvements by mwestphal --- openmc/mesh.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openmc/mesh.py b/openmc/mesh.py index 019c44c8b46..f681ac79c54 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -2369,7 +2369,7 @@ def write_data_to_vtk( Parameters ---------- filename : str or pathlib.Path - Name of the VTK file to write. If the filename ends in '.hdf' then a VTKHDF + Name of the VTK file to write. If the filename ends in '.vtkhdf' then a VTKHDF format file will be written and can be opened with Paraview versions 5.13.0 and above, if the filename ends in '.vtk' then a .vtk file will be written. datasets : dict @@ -2381,7 +2381,7 @@ def write_data_to_vtk( volume of the mesh elements """ - if Path(filename).suffix == ".hdf": + if Path(filename).suffix == ".vtkhdf": def append_dataset(dset, array): """Convenience function to append data to an HDF5 dataset""" @@ -2558,7 +2558,7 @@ def append_dataset(dset, array): else: raise ValueError( - f"Unsupported file extension for '{filename}'. Extension must be '.hdf' or '.vtk'." + f"Unsupported file extension for '{filename}'. Extension must be '.vtkhdf' or '.vtk'." ) @classmethod