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

Sebastien Jourdain sebastien.jourdain at kitware.com
Fri Oct 19 13:55:38 EDT 2012


ParaView/src/Wrapping/Python/paraview/annotation.py

Let me know if that works in all the case and I could push the fix on the
main repo...

On Fri, Oct 19, 2012 at 1:39 PM, Joshua Murphy <
Joshua.Murphy at lasp.colorado.edu> wrote:

> 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
>
>
> Joshua J. Murphy
> Computer Scientist
> Laboratory for Atmospheric and Space Physics
> University of Colorado, Boulder
>
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20121019/e01f304d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 16467 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20121019/e01f304d/attachment-0001.png>


More information about the Paraview-developers mailing list