<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><style type="text/css">
p, li { white-space: pre-wrap; }
BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}</style>
<table style="margin: 4px;">
<tbody>
<tr>
<td style="border: medium none;"><br>
</td>
</tr>
</tbody>
</table>
Its really strange it took me several tries of doing the same thing to get the error. Just to make sure its not any typo, I used python trace to get the script I attached to this e-mail (test.py). As I understand it should run no problem in the python shell.
 I highlight the data set (STSone) in the pipeline and ran the script and still get
<br>
<br>
<table style="margin: 4px;">
<tbody>
<tr>
<td style="border: medium none;">
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);">Traceback (most recent call last):</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);">File &quot;&lt;string&gt;&quot;, line 6, in &lt;module&gt;</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);">TypeError: 'GradientOfUnstructuredDataSet' object is not callable</span></p>
</td>
</tr>
</tbody>
</table>
<br>
<br>
On a side note I'm getting this:<br>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 9pt; color: rgb(128, 0, 0);">QPainter::begin: Paint device returned engine == 0, type: 2</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 9pt; color: rgb(128, 0, 0);">QPainter::setRenderHint: Painter must be active to set rendering hints</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 9pt; color: rgb(128, 0, 0);">QPainter::setBrush: Painter not active</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 9pt; color: rgb(128, 0, 0);">QPainter::end: Painter not active, aborted</span></p>
What is this error? It pops up periodically...<br>
<br>
--<br>
Janusz<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF50644"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Andy Bauer [andy.bauer@kitware.com]<br>
<b>Sent:</b> August 9, 2012 16:54<br>
<b>To:</b> Janusz Michalik<br>
<b>Cc:</b> Dray, Colan; paraview@paraview.org<br>
<b>Subject:</b> Re: [Paraview] BUG?: Paraview 3.14.1 Linux 64-bit --&gt; can not call GradientsOfUnstructuredDataSet through python script<br>
</font><br>
</div>
<div></div>
<div>I'm able to get the GradientOfUnstructuredDataSet filter through the GUI's python interpretor so I'm not sure what's causing your problem. Could you share the script?
<br>
<br>
I am able to cause problems if I don't have an active filter/source when creating the GradientOfUnstructuredDataSet filter since it complains, as it should, that there isn't a proper input for it.<br>
<br>
Andy<br>
<br>
<div class="gmail_quote">On Wed, Aug 8, 2012 at 8:23 AM, Janusz Michalik <span dir="ltr">
&lt;<a href="mailto:janusz.michalik@epfl.ch" target="_blank">janusz.michalik@epfl.ch</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div lang="EN-US">
<div style="direction: ltr; font-size: 10pt; font-family: Tahoma;">Sorry, in the e-mail I misspelled it. I do use:<br>
<br>
GradientOfUnstructuredDataSet()<br>
<br>
as the error indicates; it is not related to the spelling. After I sent out the first e-mail I tried Paraview 3.14.0 Linux 64-bit and it works, so for what I need this is fine. I think it is a bug that needs to be fixed in 3.14.1, if it hasn't already been
 fixed in the developers version.<br>
<br>
<div style="font-size: 16px; font-family: Times New Roman;">
<hr>
<div style="direction: ltr;"><font color="#000000" face="Tahoma"><b>From:</b> Dray, Colan [<a href="mailto:Colan.Dray@alcoa.com" target="_blank">Colan.Dray@alcoa.com</a>]<br>
<b>Sent:</b> August 8, 2012 14:16<br>
<b>To:</b> Janusz Michalik<br>
<b>Subject:</b> RE: [Paraview] BUG?: Paraview 3.14.1 Linux 64-bit --&gt; can not call GradientsOfUnstructuredDataSet through python script<br>
</font><br>
</div>
<div></div>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: Courier; color: red;">GradientOfUnstructuredDataSet</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">GradientsOfUnstructuredDatSet()</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">There’s a spelling discrepancy between the two: missing “A” in data, and extra “S” after gradient. Could that be the issue?</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">-Colan</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">&nbsp;</span></p>
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in;">
<p class="MsoNormal" style="margin-left: 0.5in;"><b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">From:</span></b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">
<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a> [mailto:<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a>]
<b>On Behalf Of </b>Janusz Michalik<br>
<b>Sent:</b> Wednesday, August 08, 2012 5:35 AM<br>
<b>To:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview] BUG?: Paraview 3.14.1 Linux 64-bit --&gt; can not call GradientsOfUnstructuredDataSet through python script</span></p>
</div>
</div>
<div>
<div class="h5">
<p class="MsoNormal" style="margin-left: 0.5in;">&nbsp;</p>
<div>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom: 12pt; margin-left: 0.5in;">
<span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">Hi all,<br>
<br>
I switched from Paraview 3.12.0 to 3.14.1 Linux 64-bit and have the following error:</span></p>
<table style="margin-left: 39pt;" cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding: 0.75pt;">
<p><span style="font-size: 9pt; font-family: Courier; color: red;">Traceback (most recent call last):</span></p>
<p><span style="font-size: 9pt; font-family: Courier; color: red;">File &quot;&lt;string&gt;&quot;, line 6, in &lt;module&gt;</span></p>
<p><span style="font-size: 9pt; font-family: Courier; color: red;">TypeError: 'GradientOfUnstructuredDataSet' object is not callable</span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;"><br>
when I try to take the gradients of the velocity by calling: GradientsOfUnstructuredDatSet(). This worked in 3.12.0, did something change? Is there a quick fix for this? Please let me know. I would go back to the old version except that the numpy eig functions
 return 0&#43;0i for any matrix I throw at it (so another bug which I assume won't be fixed since its an older version).<br>
<br>
Best,<br>
Janusz</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>