<div dir="ltr">Alejandro,<div><br></div><div>You're right, merge blocks will discard all partial array. In that case, it might be better to use the ProgrammableFilter with the script to process the data directly on the server-side, unless the algorithm you're implementing needs the data to be reduced among all processes.</div>
<div><br></div><div style>Utkash</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 27, 2013 at 5:26 AM, Alejandro RIBES <span dir="ltr"><<a href="mailto:alejandro.ribes@edf.fr" target="_blank">alejandro.ribes@edf.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><font face="sans-serif">Hi Berk,</font>
<br>
<br><font face="sans-serif">I am helping some people in the company
with the postprocessing of some mechanical displacements. They are at the
moment scripting in python and need to loop over all the nodes of their
mesh and access a field value at the same time. Their basic structures
are MutiBlock datasets with unstructured grids inside. GetPointData does
not work if a fetch is not done before, this is the origin of the problem.</font>
<br>
<br><font face="sans-serif">By the way, the blocks have partial
fields associated to them (fields associated to a block are not necessarily
present in another block). I tried MergeBlocks and it seems like partial
fields disappear from the resulting unstructured grid.</font>
<br>
<br><font face="sans-serif">Thanks in advance for your help,</font>
<br>
<br><font face="sans-serif">Alejandro.</font>
<br>
<br>
<br>
<br>
<br>
<p></p><table width="100%">
<tbody><tr valign="top">
<td width="40%"><font size="1" face="sans-serif"><b><a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a></b>
</font>
<p><font size="1" face="sans-serif">26/02/2013 20:23</font>
</p></td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">A</font></div>
</td><td><font size="1" face="sans-serif"><a href="mailto:alejandro.ribes@edf.fr" target="_blank">alejandro.ribes@edf.fr</a></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">cc</font></div>
</td><td><font size="1" face="sans-serif"><a href="mailto:paraview-developers@paraview.org" target="_blank">paraview-developers@paraview.org</a>, <a href="mailto:paraview-developers-bounces@paraview.org" target="_blank">paraview-developers-bounces@paraview.org</a></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">Objet</font></div>
</td><td><font size="1" face="sans-serif">Re: [Paraview-developers] MultiBlock
datasets and Fetch</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table><div class="HOEnZb"><div class="h5">
<br>
<br>
<br><tt><font>Hi Alejandro,<br>
<br>
What is the end goal? Why are you trying to Fetch an entire dataset?<br>
<br>
Best,<br>
-berk<br>
<br>
On Mon, Feb 25, 2013 at 1:02 PM, Alejandro RIBES <<a href="mailto:alejandro.ribes@edf.fr" target="_blank">alejandro.ribes@edf.fr</a>>
wrote:<br>
><br>
> Hello,<br>
><br>
> In a python script I am trying to deal with a MultiBlock dataset composed
of<br>
> Unstructured grids in order to access to<br>
> GetPointData().GetArray('TemperatureField') on my grids. I'm having
trouble<br>
> understanding how to access to this information because the help of
ParaView<br>
> says that a Fetch is not working on MultiBlock datasets. I indeed
tried<br>
> servermanager.Fetch() on my dataset and I cannot access anything later.<br>
> Should I call the fetch with an ExtractBlock filter? Should I use
a special<br>
> "reduction kind" of filter for that? In this case what are
the parameters of<br>
> the fetch, someone know it?<br>
><br>
> Thanks in advance,<br>
><br>
> Alejandro.<br>
><br>
><br>
> Ce message et toutes les pièces jointes (ci-après le 'Message') sont
établis<br>
> à l'intention exclusive des destinataires et les informations qui
y figurent<br>
> sont strictement confidentielles. Toute utilisation de ce Message
non<br>
> conforme à sa destination, toute diffusion ou toute publication totale
ou<br>
> partielle, est interdite sauf autorisation expresse.<br>
><br>
> Si vous n'êtes pas le destinataire de ce Message, il vous est interdit
de le<br>
> copier, de le faire suivre, de le divulguer ou d'en utiliser tout
ou partie.<br>
> Si vous avez reçu ce Message par erreur, merci de le supprimer de
votre<br>
> système, ainsi que toutes ses copies, et de n'en garder aucune trace
sur<br>
> quelque support que ce soit. Nous vous remercions également d'en avertir<br>
> immédiatement l'expéditeur par retour du message.<br>
><br>
> Il est impossible de garantir que les communications par messagerie<br>
> électronique arrivent en temps utile, sont sécurisées ou dénuées de
toute<br>
> erreur ou virus.<br>
> ____________________________________________________<br>
><br>
> This message and any attachments (the 'Message') are intended solely
for the<br>
> addressees. The information contained in this Message is confidential.
Any<br>
> use of information contained in this Message not in accord with its
purpose,<br>
> any dissemination or disclosure, either whole or partial, is prohibited<br>
> except formal approval.<br>
><br>
> If you are not the addressee, you may not copy, forward, disclose
or use any<br>
> part of it. If you have received this message in error, please delete
it and<br>
> all copies from your system and notify the sender immediately by return<br>
> message.<br>
><br>
> E-mail communication cannot be guaranteed to be timely secure, error
or<br>
> virus-free.<br>
><br>
><br>
> _______________________________________________<br>
> Paraview-developers mailing list<br>
> <a href="mailto:Paraview-developers@paraview.org" target="_blank">Paraview-developers@paraview.org</a><br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
><br>
</font></tt>
<br><p></p>
<p><br>
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.</p>
<p>Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.</p>
<p>Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.<br>
____________________________________________________</p>
<p>This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.</p>
<p>If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.</p>
<p>E-mail communication cannot be guaranteed to be timely secure, error or virus-free.</p></div></div><br>_______________________________________________<br>
Paraview-developers mailing list<br>
<a href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br></blockquote></div><br></div>