separate out vtu i/o
@@ -10,6 +10,7 @@ from . import gmsh_io
from . import off_io
from . import permas_io
from . import vtk_io
+from . import vtu_io
input_filetypes = [
'ansys',
@@ -109,7 +110,7 @@ def read(filename, file_format=None):
elif file_format == 'off':
out = off_io.read(filename)
elif file_format in ['vtu-ascii', 'vtu-binary']:
- out = vtk_io.read('vtu', filename)
+ out = vtu_io.read(filename)
elif file_format in ['vtk-ascii', 'vtk-binary']:
out = vtk_io.read('vtk', filename)
elif file_format in ['xdmf', 'xdmf2']:
@@ -182,14 +183,14 @@ def write(filename,
elif file_format == 'permas':
permas_io.write(filename, points, cells)
elif file_format == 'vtu-ascii':
- vtk_io.write(
+ vtu_io.write(
'vtu-ascii', filename, points, cells,
point_data=point_data,
cell_data=cell_data,
field_data=field_data
)
elif file_format in ['vtu', 'vtu-binary']:
- vtk_io.write(
+ vtu_io.write(
'vtu-binary', filename, points, cells,
point_data=point_data,
cell_data=cell_data,
