From 6547ab8c69dc24288ebac1541a9526dfe6c27b39 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 5 Jul 2017 04:43:20 +0200 Subject: [PATCH] not needed, ASCII table ensures shape (Npoints,Nvalues) --- processing/post/vtk_pointcloud.py | 1 - processing/post/vtk_rectilinearGrid.py | 1 - 2 files changed, 2 deletions(-) diff --git a/processing/post/vtk_pointcloud.py b/processing/post/vtk_pointcloud.py index 5779b7540..54f02d300 100755 --- a/processing/post/vtk_pointcloud.py +++ b/processing/post/vtk_pointcloud.py @@ -61,7 +61,6 @@ for name in filenames: # ------------------------------------------ process data --------------------------------------- table.data_readArray(options.pos) - if len(table.data.shape) < 2: table.data.shape += (1,) # expand to 2D shape if table.data.shape[1] < 3: table.data = np.hstack((table.data, np.zeros((table.data.shape[0], diff --git a/processing/post/vtk_rectilinearGrid.py b/processing/post/vtk_rectilinearGrid.py index cc6c01711..326f26046 100755 --- a/processing/post/vtk_rectilinearGrid.py +++ b/processing/post/vtk_rectilinearGrid.py @@ -70,7 +70,6 @@ for name in filenames: # --------------- figure out size and grid --------------------------------------------------------- table.data_readArray(options.pos) - if len(table.data.shape) < 2: table.data.shape += (1,) # expand to 2D shape if table.data.shape[1] < 3: table.data = np.hstack((table.data, np.zeros((table.data.shape[0],