ParaView/src/Wrapping/Python/paraview/annotation.py<div><br></div><div>Let me know if that works in all the case and I could push the fix on the main repo...<br><br><div class="gmail_quote">On Fri, Oct 19, 2012 at 1:39 PM, Joshua Murphy <span dir="ltr"><<a href="mailto:Joshua.Murphy@lasp.colorado.edu" target="_blank">Joshua.Murphy@lasp.colorado.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-size:14px;font-family:Calibri,sans-serif">Hello,</div><div style="font-size:14px;font-family:Calibri,sans-serif">
<br></div><div style="font-size:14px;font-family:Calibri,sans-serif">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.</div>
<div style="font-size:14px;font-family:Calibri,sans-serif"><br></div><div style="font-size:14px;font-family:Calibri,sans-serif">The error being generated is:</div><div style="font-size:14px;font-family:Calibri,sans-serif">
<br></div><div>
<p style="margin-right:0px;text-indent:0px;font-size:14px;margin-left:0px;margin-bottom:0px;font-family:Calibri,sans-serif;margin-top:0px"><span style="font-family:'Courier';font-size:13pt;color:#800000">Traceback (most recent call last):</span></p>
<p style="margin-right:0px;text-indent:0px;font-size:14px;margin-left:0px;margin-bottom:0px;font-family:Calibri,sans-serif;margin-top:0px"><span style="font-family:'Courier';font-size:13pt;color:#800000"> File "<string>", line 5, in <module></span></p>
<p style="margin-right:0px;text-indent:0px;font-size:14px;margin-left:0px;margin-bottom:0px;font-family:Calibri,sans-serif;margin-top:0px"><span style="font-family:'Courier';font-size:13pt;color:#800000"> File "/Users/jomu9721/Data/Development/paraview_git/build/lib/site-packages/paraview/annotation.py", line 44, in ComputeAnnotation</span></p>
<p style="margin-right:0px;text-indent:0px;font-size:14px;margin-left:0px;margin-bottom:0px;font-family:Calibri,sans-serif;margin-top:0px"><span style="font-family:'Courier';font-size:13pt;color:#800000"> fieldName = input.GetFieldData().GetArray(index).GetName()</span></p>
<p style="margin-right:0px;text-indent:0px;font-size:14px;margin-left:0px;margin-bottom:0px;font-family:Calibri,sans-serif;margin-top:0px"><span style="font-family:'Courier';font-size:13pt;color:#800000">AttributeError: 'NoneType' object has no attribute 'GetName'</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;font-family:Courier;font-size:13pt;color:rgb(128,0,0)"><br></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
<font face="Calibri,sans-serif"><span style="white-space:normal">Trough a query to the general paraview mailing list, I was able to ascertain that proper call would be:</span></font></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
<font face="Calibri,sans-serif"><span style="white-space:normal"><br></span></font></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:rgb(128,0,0);font-family:Courier;font-size:17px">fieldName = input.GetFieldData().GetAbstractArray(index).GetName()</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="color:rgb(128,0,0);font-family:Courier;font-size:17px"><br></span></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
<font face="Calibri,sans-serif"><span style="white-space:normal">Is there an easy way I can fix this? Can someone point me to where in the source tree this filter is defined?</span></font></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
<font face="Calibri,sans-serif"><span style="white-space:normal"><br></span></font></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><font face="Calibri,sans-serif"><span style="white-space:normal">Thanks,</span></font></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><font face="Calibri,sans-serif"><span style="white-space:normal">Josh</span></font></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
<font face="Calibri,sans-serif"><span style="white-space:normal"><br></span></font></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><font face="Calibri,sans-serif"><span style="white-space:normal"></span></font></p>
<div><div><div><font face="Calibri,sans-serif"><img src="cid:D6616F45-18FE-4B95-9378-CE5F535EDC54" type="image/png"></font></div></div><div><font face="Calibri,sans-serif">Joshua J. Murphy</font></div><div><font face="Calibri,sans-serif">Computer Scientist</font></div>
<div><font face="Calibri,sans-serif">Laboratory for Atmospheric and Space Physics</font></div><div><font face="Calibri,sans-serif">University of Colorado, Boulder</font></div><div><font face="Calibri,sans-serif"><br></font></div>
</div><p></p></div></div>
<br>_______________________________________________<br>
Paraview-developers mailing list<br>
<a href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br></blockquote></div><br></div>