<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" face="Arial">Good evening,</font><div><font class="Apple-style-span" face="Arial"><br></font></div><div><font class="Apple-style-span" face="Arial">I'm trying to import a text file in order to superimpose the results with some OpenFOAM results.</font></div><div><font class="Apple-style-span" face="Arial">I'm using a python script to read the text file; however, the basic script provided at&nbsp;</font></div><div><font class="Apple-style-span" face="Arial"><a href="http://cmake.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters">http://cmake.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters</a></font></div><div><font class="Apple-style-span" face="Arial">fails at </font><span class="Apple-style-span" style="white-space: pre; "><font class="Apple-style-span" face="Arial">pdo = </font><span class="kw2" style="color: rgb(0, 128, 0); "><font class="Apple-style-span" face="Arial">self</font></span><font class="Apple-style-span" face="Arial">.</font><span class="me1" style="color: black; "><font class="Apple-style-span" face="Arial">GetOutput</font></span><span class="br0" style="color: black; "><font class="Apple-style-span" face="Arial">(</font></span><span class="br0" style="color: black; "><font class="Apple-style-span" face="Arial">) :</font></span></span></div><div><span class="Apple-style-span" style="white-space: pre; "><font class="Apple-style-span" face="Arial">&nbsp;</font></span></div><div><font class="Apple-style-span" face="-webkit-monospace" size="2"><span class="Apple-style-span" style="font-size: 10px; white-space: pre;"><div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 11px;">Traceback (most recent call last):</span></font></div><div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp;File "paraview_cvs.py", line 21, in &lt;module></span></font></div><div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 11px;">&nbsp;&nbsp; &nbsp;pdo = self.GetOutput()</span></font></div><div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 11px;">NameError: name 'self' is not defined</span></font></div><div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 11px;">Not sure what is wrong - any idea ?</span></font></div><div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 11px;">Best regards,</span></font></div><div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 11px;">PO</span></font></div></span></font></div><span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 10px; "><pre class="de1" style="color: black; background-color: rgb(249, 249, 249); line-height: normal; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: white; border-right-color: white; border-bottom-color: white; border-left-color: white; font-family: monospace; font-weight: normal; font-style: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background: inherit; "></pre></span></body></html>