Skip to content

Commit

Permalink
review improvements by mwestphal
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-proximafusion committed Jan 9, 2025
1 parent b2c775c commit aa13835
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openmc/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"""
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aa13835

Please sign in to comment.