Thank you Utkarsh, that did the trick.
Regards,
Dean
On Fri, Jul 8, 2016 at 1:43 PM, Utkarsh Ayachit wrote:
> Dean,
>
> Current numpy support in VTK doesn't include string arrays, You can
> overcome that as follows:
>
> colNames = [ 'simulation', 'v0 (m/s)', 'k (%)' ]
> col0 = [ 'm01-sim001
Dean,
Current numpy support in VTK doesn't include string arrays, You can
overcome that as follows:
colNames = [ 'simulation', 'v0 (m/s)', 'k (%)' ]
col0 = [ 'm01-sim001', 'm01-sim002', 'm02-sim001' ]
...
strArray = vtk.vtkStringArray()
strArray.SetName(colNames[0])
strArray.SetNumberOfTuples
I am trying to write a python programmable filter which calculates
statistics across multiple input datasets and outputs those as a vtkTable.
All is ok for numeric values. But I can't seem to get any approach to
work for outputting a vtkTable column of string values.
Using numpy_interface/datase