<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;">OK if I can figure it out I will let you know.<br>
<br>
I downloaded both versions from the Paraview downloads page.<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="divRpF646845"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Andy Bauer [andy.bauer@kitware.com]<br>
<b>Sent:</b> August 9, 2012 17:52<br>
<b>To:</b> Janusz Michalik<br>
<b>Cc:</b> Colan.Dray@alcoa.com; paraview@paraview.org<br>
<b>Subject:</b> Re: [Paraview] BUG?: Paraview 3.14.1 Linux 64-bit --> can not call GradientsOfUnstructuredDataSet through python script<br>
</font><br>
</div>
<div></div>
<div>I ran your script after creating a source and using the python calculator to create the velocity and pressure fields and didn't have any problems with 3.14.1. If you can figure out a way to reliably reproduce the problem I can try to fix it.<br>
<br>
I've never seen the QPainter warning. Did you build ParaView yourself or use an installer?<br>
<br>
<div class="gmail_quote">On Thu, Aug 9, 2012 at 11:26 AM, Janusz Michalik <span dir="ltr">
<<a href="mailto:janusz.michalik@epfl.ch" target="_blank">janusz.michalik@epfl.ch</a>></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>
<div style="direction: ltr; font-size: 10pt; font-family: Tahoma;">
<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>
<div class="im"><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 "<string>", line 6, in <module></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>
</div>
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-size: 16px; font-family: Times New Roman;">
<hr>
<div style="direction: ltr;"><font color="#000000" face="Tahoma"><b>From:</b> Andy Bauer [<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>]<br>
<b>Sent:</b> August 9, 2012 16:54<br>
<b>To:</b> Janusz Michalik<br>
<b>Cc:</b> Dray, Colan; <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>
<div>
<div class="h5"><br>
<b>Subject:</b> Re: [Paraview] BUG?: Paraview 3.14.1 Linux 64-bit --> can not call GradientsOfUnstructuredDataSet through python script<br>
</div>
</div>
</font><br>
</div>
<div>
<div class="h5">
<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">
<<a href="mailto:janusz.michalik@epfl.ch" target="_blank">janusz.michalik@epfl.ch</a>></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 --> 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: "Tahoma","sans-serif";">GradientsOfUnstructuredDatSet()</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">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: "Tahoma","sans-serif";"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">-Colan</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </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: "Tahoma","sans-serif";">From:</span></b><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">
<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 --> can not call GradientsOfUnstructuredDataSet through python script</span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left: 0.5in;"> </p>
<div>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom: 12pt; margin-left: 0.5in;">
<span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">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 "<string>", line 6, in <module></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: "Tahoma","sans-serif";"><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+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>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>