From fc29df385f0b485e7faed405574d0d0c93176083 Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Wed, 8 Nov 2017 12:11:01 +0100 Subject: [PATCH] VTK output for boundary data --- vtk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtk.py b/vtk.py index c256f0019..e47f22eda 100644 --- a/vtk.py +++ b/vtk.py @@ -12,7 +12,7 @@ def imageToVTK(path, origin=(0.0, 0.0, 0.0), spacing=(1.0, 1.0, 1.0), cellData=N keys = list(cellData.keys()) data = cellData[keys[0]] if hasattr(data, 'shape'): - end = data.shape[:-1] + end = data.shape elif data[0].ndim == 3 and data[1].ndim == 3 and data[0].ndim == 3: keys = list(cellData.keys()) data = cellData[keys[0]] -- GitLab