<html><head><meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">Hello,</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">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="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">The error being generated is:</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; "><br></div><div>
<p style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><!--StartFragment--><span style=" font-family:'Courier'; font-size:13pt; color:#800000;">Traceback (most recent call last):</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><span style=" font-family:'Courier'; font-size:13pt; color:#800000;"> File "<string>", line 5, in <module></span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 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="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><span style=" font-family:'Courier'; font-size:13pt; color:#800000;"> fieldName = input.GetFieldData().GetArray(index).GetName()</span></p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 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><!--EndFragment--></p><p style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><font class="Apple-style-span" face="Calibri,sans-serif"><span class="Apple-style-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 class="Apple-style-span" face="Calibri,sans-serif"><span class="Apple-style-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 class="Apple-style-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 class="Apple-style-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 class="Apple-style-span" face="Calibri,sans-serif"><span class="Apple-style-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 class="Apple-style-span" face="Calibri,sans-serif"><span class="Apple-style-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 class="Apple-style-span" face="Calibri,sans-serif"><span class="Apple-style-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 class="Apple-style-span" face="Calibri,sans-serif"><span class="Apple-style-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 class="Apple-style-span" face="Calibri,sans-serif"><span class="Apple-style-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 class="Apple-style-span" face="Calibri,sans-serif"><span class="Apple-style-span" style="white-space: normal;"><div><div><div><img src="cid:D6616F45-18FE-4B95-9378-CE5F535EDC54" type="image/png"></div></div><div>Joshua J. Murphy</div><div>Computer Scientist</div><div>Laboratory for Atmospheric and Space Physics</div><div>University of Colorado, Boulder</div><div><br></div></div></span></font></p></div></body></html>