[Paraview-developers] AnnotateGlobalData filter does not work with string arrays

Joshua Murphy Joshua.Murphy at lasp.colorado.edu
Fri Oct 19 13:39:54 EDT 2012


Hello,

I am trying to use the AnnotateGlobalData filter with string data in my reader's field data, but the filter is calling the wrong functions to retrieve the string data.

The error being generated is:


Traceback (most recent call last):

File "<string>", line 5, in <module>

File "/Users/jomu9721/Data/Development/paraview_git/build/lib/site-packages/paraview/annotation.py", line 44, in ComputeAnnotation

fieldName = input.GetFieldData().GetArray(index).GetName()

AttributeError: 'NoneType' object has no attribute 'GetName'


Trough a query to the general paraview mailing list, I was able to ascertain that proper call would be:


fieldName = input.GetFieldData().GetAbstractArray(index).GetName()


Is there an easy way I can fix this? Can someone point me to where in the source tree this filter is defined?


Thanks,

Josh


[cid:D6616F45-18FE-4B95-9378-CE5F535EDC54]
Joshua J. Murphy
Computer Scientist
Laboratory for Atmospheric and Space Physics
University of Colorado, Boulder

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20121019/db5c8854/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: A93D829A-3C2C-4769-925A-35900ECAAE2C[1].png
Type: image/png
Size: 16467 bytes
Desc: A93D829A-3C2C-4769-925A-35900ECAAE2C[1].png
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20121019/db5c8854/attachment-0001.png>


More information about the Paraview-developers mailing list