mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Apply suggestions from code review
Including suggestions from @paulromano. Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
f28b197cd3
commit
114ebef711
1 changed files with 1 additions and 2 deletions
|
|
@ -685,7 +685,6 @@ class UnstructuredMesh(MeshBase):
|
|||
|
||||
Parameters
|
||||
----------
|
||||
|
||||
filename : str
|
||||
Name of the VTK file to write.
|
||||
datasets : dict
|
||||
|
|
@ -757,7 +756,7 @@ class UnstructuredMesh(MeshBase):
|
|||
poly_data.GetPointData().AddArray(array)
|
||||
|
||||
# set filename
|
||||
if filename[-4:] != ".vtk":
|
||||
if not filename.endswith(".vtk"):
|
||||
filename += ".vtk"
|
||||
|
||||
writer = vtk.vtkGenericDataObjectWriter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue