From 16fac7cc071c0faafbf950dc9f0a036cd0465db1 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Tue, 26 Feb 2019 20:45:11 -0600 Subject: [PATCH] Removing data set line. --- scripts/openmc-voxel-to-vtk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/openmc-voxel-to-vtk b/scripts/openmc-voxel-to-vtk index c7d60258a..c43f60b68 100755 --- a/scripts/openmc-voxel-to-vtk +++ b/scripts/openmc-voxel-to-vtk @@ -38,10 +38,8 @@ def main(): data = vtk.vtkIntArray() data.SetName("id") - # pass h5data as a "hint" that no copy/allocation is necessary + # set the array using the h5data array data.SetArray(h5data, h5data.size, True) - # set the data array - data.array = h5data # add data to image grid grid.GetCellData().AddArray(data)