Which version of ParaView is this? This bug sounds very familiar to me and I vaguely remember sitting down with Utkarsh to fix it. If it is an older version, can you try 3.14?<div><br></div><div>As for the Python notation, take a look at:</div>
<div><br></div><div><a href="http://paraview.org/Wiki/ParaView/Users_Guide/Python_Programmable_Filter">http://paraview.org/Wiki/ParaView/Users_Guide/Python_Programmable_Filter</a></div><div><a href="http://paraview.org/Wiki/ParaView/Users_Guide/Python_Calculator">http://paraview.org/Wiki/ParaView/Users_Guide/Python_Calculator</a></div>
<div><br></div><div>You need to use something like: <span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">inputs[0].CellData['<u></u>mechTensor'][:, n]</span></div>
<div><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif">where n is whichever component that you are accessing. This notation is based on Numpy. You can learn more about it here:</span></div>
<div><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif"><br></span></div><div><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif"><a href="http://www.google.com/url?sa=t&rct=j&q=numpy%20book&source=web&cd=1&ved=0CGAQFjAA&url=http%3A%2F%2Fwww.tramy.us%2Fnumpybook.pdf&ei=iee_T6LGNeK02gWuqqSwDQ&usg=AFQjCNEqRdLrjjyLB8CFsWb1wecnEuDfNg">Guide to NumPy - Trelgol</a></span></div>
<div><br></div><div>Note that NumPy is much more powerful and efficient that the Array Calculator so I'd recommend using the Python Calculator or the Python Programmable Filter whenever possible.</div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse:collapse"><br>
</span></font><div><br></div><div>-berk</div><div><br><br><div class="gmail_quote">On Fri, May 25, 2012 at 10:03 AM, Fabian Wein <span dir="ltr"><<a href="mailto:fabian.wein@am.uni-erlangen.de" target="_blank">fabian.wein@am.uni-erlangen.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It appears to me you have found a limitation (or bug?) in the<br>
Calculator filter. My comments are inserted below.<br>
</blockquote>
<br></div>
I just submitted a bug report: <a href="http://paraview.org/Bug/view.php?id=13204" target="_blank">http://paraview.org/Bug/view.<u></u>php?id=13204</a><div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
files, however, I have never used it. I graduated from VTK<br>
XML-structured ASCII-text results files to the EnSight<br>
binary-formatted specification in order to get compact, manageable<br>
file-sets for my modestly large explicit transient dynamic simulations.<br>
</blockquote>
<br></div>
We are happy with HDF5 but this requires a own reader plugin for<br>
our format which we wrote some years ago. With HDF5 we have also access<br>
via Matlab, with is a plus for us.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If the error message reflects a "limitation" in the Calculator, then<br>
the Calculator only processes scalars and vectors (1st-order tensors),<br>
and that in itself is no small accomplishment.<br>
</blockquote>
<br></div>
My "mechTensor" is just a vector with 6 components, so the limitation is<br>
with the size of the vector.<br>
<br>
This answers two of my questions:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* am I right with the assumption, that the calculator does not like double characters after the underline?<br>
* Is this XX, YY, ... coming from Paraview?<br>
</blockquote>
<br></div>
Anyone who can help me with the following two?<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* How do I access the vector components via python?<br>
* Where can I find more information about the python interface?<br>
</blockquote>
<br></div>
Thanks a lot,<br>
<br>
Fabian<div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<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/<u></u>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/<u></u>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/<u></u>mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br></div></div>