Re: [Paraview] numpy_interface/dataset_adapter append method fails on string datatypes ?

2016-07-11 Thread Dean Neumann
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

Re: [Paraview] numpy_interface/dataset_adapter append method fails on string datatypes ?

2016-07-08 Thread Utkarsh Ayachit
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

[Paraview] numpy_interface/dataset_adapter append method fails on string datatypes ?

2016-07-01 Thread Dean Neumann
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