Re: [Paraview] Fetching data from xdmf temporal collection

2015-03-26 Thread Jean-Michel
Hi Armin,

thanks a lot for your script, it's everything I needed to be able to read my 
data.

Jean-Michel

-Message d'origine-
De : Armin Wehrfritz [mailto:dkxl...@gmail.com] 
Envoyé : jeudi 26 mars 2015 14:33
À : Jean-Michel
Cc : paraview@paraview.org
Objet : Re: [Paraview] Fetching data from xdmf temporal collection

Hi Jean-Michel,

just to mention, I don't think VTK is significantly more efficient than 
ParaView. In practice you shouldn't feel a difference, since all the heavy data 
handling is anyways done by VTK.

Anyway, I attached a script that shows you how to read XDMF data, step through 
the time steps, wrap the data for numpy and print out some basic infos.

Regarding the GetOutput() method, to get data object from the XDMF reader you 
have to use the GetOutputDataObject(0) method.
But I don't know the difference between the two of them, and this also may 
depends on your VTK version, I'm using 6.2.

-Armin







On 03/23/2015 03:15 PM, Jean-Michel wrote:
> Armin,
>
> you said you would rather use vtk directly to access raw data in xdmf 
> files. I tried to follow your advice, but I struggle with the 
> vtkXdmfReader. Basically, here is what I do:
>
> import vtk
>
> reader = vtk.vtkXdmfReader()
>
> reader.SetFileName(myfile)
>
> reader.ReadAllScalarsOn()
>
> reader.Update()
>
> However, I don't know how to access the data inside reader once this 
> is done. The GetOutput() method doesn't seem to work. Do you know what 
> I am missing here ? If not, I'll try and move the discussion over at 
> the vtk-users list.
>
> Thank you for your help.
>
> Jean-Michel
>
>
>
> 
> Avast logo <http://www.avast.com/>
>
> L'absence de virus dans ce courrier électronique a été vérifiée par le 
> logiciel antivirus Avast.
> www.avast.com <http://www.avast.com/>
>
>


---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Import h5py in python shell

2015-05-26 Thread Jean-Michel
Dear all,



I am currently trying to use the h5py module in the Python Shell in ParaView
4.3.1 (64 bits). On my system, h5py comes from my installation of python-xy
and works fine outside of ParaView.



I tried to import the module by providing the path to the package, using
mainly two methods:

- append the path to the package with sys.path.append before doing the
import

- import the module using the imp package and providing the full path to
imp.load_source

However, both methods failed to load h5py, returing the following error :
"ImportError: DLL load failed: %1 is not a valid win32 application".



Thank you for your help.



Jean-Michel



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Import h5py in python shell

2015-06-02 Thread Jean-Michel
Thank you for your answer Utkarsh.



Unfortunately, the h5py installer for Windows does not find the Python 
installation packaged with ParaView in my registry, so I cannot install it in 
ParaView.



Jean-Michel



De : Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Envoyé : vendredi 29 mai 2015 20:00
À : Jean-Michel; paraview@paraview.org
Objet : Re: [Paraview] Import h5py in python shell



ParaView packages its own Python. You'll either need to build ParaView from 
source using the Python installation you have or install h5py in the Python 
packaged with ParaView.



Utkarsh



On Tue, May 26, 2015 at 9:58 AM Jean-Michel  wrote:

Dear all,



I am currently trying to use the h5py module in the Python Shell in ParaView 
4.3.1 (64 bits). On my system, h5py comes from my installation of python-xy and 
works fine outside of ParaView.



I tried to import the module by providing the path to the package, using mainly 
two methods:

- append the path to the package with sys.path.append before doing the import

- import the module using the imp package and providing the full path to 
imp.load_source

However, both methods failed to load h5py, returing the following error : 
"ImportError: DLL load failed: %1 is not a valid win32 application".



Thank you for your help.



Jean-Michel



  _


 <http://www.avast.com/> Image supprimée par l'expéditeur. Avast logo

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
www.avast.com <http://www.avast.com/>



___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Import h5py in python shell

2015-06-02 Thread Jean-Michel
Thanks again Utkarsh.



However, trying to load the installed h5py from pvpython (after appending the 
path in the sys.path) gives me the same error I ran into in ParaView's python 
shell:



from h5py import _errors

ImportError: DLL load failed: %1 is not a valid win32 application



Jean-Michel



De : Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Envoyé : mardi 2 juin 2015 16:27
À : Jean-Michel; paraview@paraview.org
Objet : Re: [Paraview] Import h5py in python shell



Another trick to try (no guarantees :) ) is to install Python 2.7.2 (64bit)  
and then install h5py for this installation of Python. Then, try loading h5py 
from pvpython. You'll need to extend  the sys.path variable to find the 
installed modules.



Utkarsh



On Tue, Jun 2, 2015 at 2:54 AM Jean-Michel  wrote:

Thank you for your answer Utkarsh.



Unfortunately, the h5py installer for Windows does not find the Python 
installation packaged with ParaView in my registry, so I cannot install it in 
ParaView.



Jean-Michel



De : Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Envoyé : vendredi 29 mai 2015 20:00
À : Jean-Michel; paraview@paraview.org
Objet : Re: [Paraview] Import h5py in python shell



ParaView packages its own Python. You'll either need to build ParaView from 
source using the Python installation you have or install h5py in the Python 
packaged with ParaView.



Utkarsh



On Tue, May 26, 2015 at 9:58 AM Jean-Michel  wrote:

Dear all,



I am currently trying to use the h5py module in the Python Shell in ParaView 
4.3.1 (64 bits). On my system, h5py comes from my installation of python-xy and 
works fine outside of ParaView.



I tried to import the module by providing the path to the package, using mainly 
two methods:

- append the path to the package with sys.path.append before doing the import

- import the module using the imp package and providing the full path to 
imp.load_source

However, both methods failed to load h5py, returing the following error : 
"ImportError: DLL load failed: %1 is not a valid win32 application".



Thank you for your help.



Jean-Michel



  _


 <http://www.avast.com/> Image supprimée par l'expéditeur. Avast logo

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
www.avast.com <http://www.avast.com/>



___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview



  _


 <http://www.avast.com/> Image supprimée par l'expéditeur. Avast logo

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
www.avast.com <http://www.avast.com/>





---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Import h5py in python shell

2015-06-03 Thread Jean-Michel
As it turns out, my python installation is 32 bits, which I wasn't aware of 
(checked it with platform.architecture).

Loading h5py in the python shell from ParaView 32 bits works fine after 
extending sys.path.

Anyway, thank you very much for your help.



Jean-Michel



De : Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Envoyé : mardi 2 juin 2015 17:27
À : Jean-Michel; paraview@paraview.org
Objet : Re: [Paraview] Import h5py in python shell



Maybe try setting the PATH such that it finds the DLLs it's trying to loads -- 
it's a Hail Mary, but why not :).



On Tue, Jun 2, 2015 at 10:56 AM Jean-Michel  wrote:

Thanks again Utkarsh.



However, trying to load the installed h5py from pvpython (after appending the 
path in the sys.path) gives me the same error I ran into in ParaView's python 
shell:



from h5py import _errors

ImportError: DLL load failed: %1 is not a valid win32 application



Jean-Michel



De : Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Envoyé : mardi 2 juin 2015 16:27


À : Jean-Michel; paraview@paraview.org
Objet : Re: [Paraview] Import h5py in python shell



Another trick to try (no guarantees :) ) is to install Python 2.7.2 (64bit)  
and then install h5py for this installation of Python. Then, try loading h5py 
from pvpython. You'll need to extend  the sys.path variable to find the 
installed modules.



Utkarsh



On Tue, Jun 2, 2015 at 2:54 AM Jean-Michel  wrote:

Thank you for your answer Utkarsh.



Unfortunately, the h5py installer for Windows does not find the Python 
installation packaged with ParaView in my registry, so I cannot install it in 
ParaView.



Jean-Michel



De : Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Envoyé : vendredi 29 mai 2015 20:00
À : Jean-Michel; paraview@paraview.org
Objet : Re: [Paraview] Import h5py in python shell



ParaView packages its own Python. You'll either need to build ParaView from 
source using the Python installation you have or install h5py in the Python 
packaged with ParaView.



Utkarsh



On Tue, May 26, 2015 at 9:58 AM Jean-Michel  wrote:

Dear all,



I am currently trying to use the h5py module in the Python Shell in ParaView 
4.3.1 (64 bits). On my system, h5py comes from my installation of python-xy and 
works fine outside of ParaView.



I tried to import the module by providing the path to the package, using mainly 
two methods:

- append the path to the package with sys.path.append before doing the import

- import the module using the imp package and providing the full path to 
imp.load_source

However, both methods failed to load h5py, returing the following error : 
"ImportError: DLL load failed: %1 is not a valid win32 application".



Thank you for your help.



Jean-Michel



  _


 <http://www.avast.com/> Image supprimée par l'expéditeur. Avast logo

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
www.avast.com <http://www.avast.com/>



___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview



  _


 <http://www.avast.com/> Image supprimée par l'expéditeur. Avast logo

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
www.avast.com <http://www.avast.com/>





  _


 <http://www.avast.com/> Image supprimée par l'expéditeur. Avast logo

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
www.avast.com <http://www.avast.com/>





---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Legend and labels

2015-09-17 Thread Jean-Michel
Dear all,

 

I have two question regarding legends and labels in ParaView and the way to
adjust them in a Python script.

 

1) Is it possible to adjust the spacing between the Title Texts and the
labels ?

 

2) Is it possible to adjust the labels' font size ?

 

Thank you in advance for your help.

 

Jean-Michel

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Fetching data from xdmf temporal collection

2015-03-17 Thread Jean-Michel
Dear all,



I am trying to fetch data out of a xdmf/h5 file.

My xdmf file is a temporal collection and the xdmf reader recognizes the
time steps (index/values in the information block).

I would like to access the point data for each time steps. However, I seem
to only get one time step when fetching the point data from the multi-block
dataset and I don't know how to iterate over the different time steps.



Hope somebody can help. Thank you very much,



Jean-Michel





---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Fetching data from xdmf temporal collection

2015-03-18 Thread Jean-Michel
Hi Ken,

Thank you very much for offering your help.
Attached is the xmf file from which I'm trying to extract the data. I did
delete a fair amount of lines from it to keep only the first 10 time steps -
hope it won't affect anything.

Jean-Michel

-Message d'origine-
De : Ken Sheldon [mailto:kshel...@slb.com]
Envoyé : mercredi 18 mars 2015 14:55
À : paraview@paraview.org
Cc : jm.lu...@gantha.com
Objet : RE: [Paraview] Fetching data from xdmf temporal collection

Jean-Michel
I find the reader is very sensitive to input errors. The diagnostic messages
are not always sufficient to identify mistakes in the XDMF file. I spent
some time getting this to work for some our data.  If you would like send me
a copy of your XDMF (not the HDF5), or at least the first few timesteps of
it, I would be happy to take a look.
Ken

Date: Tue, 17 Mar 2015 17:46:08 +0100
From: "Jean-Michel" 
To: 
Subject: [Paraview] Fetching data from xdmf temporal collection
Message-ID: <001b01d060d1$df435e70$9dca1b50$@lu...@gantha.com>
Content-Type: text/plain; charset="utf-8"

Dear all,

I am trying to fetch data out of a xdmf/h5 file.

My xdmf file is a temporal collection and the xdmf reader recognizes the
time steps (index/values in the information block).

I would like to access the point data for each time steps. However, I seem
to only get one time step when fetching the point data from the multi-block
dataset and I don't know how to iterate over the different time steps.

Hope somebody can help. Thank you very much,

Jean-Michel


---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com


testfile.xmf
Description: Binary data
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Fetching data from xdmf temporal collection

2015-03-18 Thread Jean-Michel
Hi Tim,



Thank you very much for the input.

However, the animation works fine for me from the xdmf time series. From what I 
understand, your script handles several separate files to generate an 
animation. My problem is rather to retrieve the point data values at each time 
step from a unique xmf file for further manipulation in python.



Anyway, thank you again for your suggestion.



Jean-Michel



De : Tim Gallagher [mailto:tim.gallag...@gatech.edu]
Envoyé : mardi 17 mars 2015 19:44
À : Jean-Michel
Cc : paraview@paraview.org
Objet : Re: [Paraview] Fetching data from xdmf temporal collection



Hi Jean-Michel,

For what it's worth, we never had much luck when we tried using XDMF time 
series (back in the early PV version 3.14 days). So we instead just got in the 
habit of looking at individual snap shots and if we wanted to do an animation, 
we would use the Python trace feature to set up our view and then make some 
small modifications to the generated trace script. We would wrap all of the 
contents in a function that took in a file name/number and output an image at 
the end and then we would write a small driver program that would call that 
function, looping over our temporal series that way.

It has the added benefit of running the visualization on a cluster where each 
process is serial and handles a range of data files.

Hopefully somebody who has gotten temporal series to work can help you out. If 
not, I'll be happy to share some example scripts for processing time series 
data as snapshots using pvpython.

Tim

  _

From: "Jean-Michel" 
To: paraview@paraview.org
Sent: Tuesday, March 17, 2015 12:46:08 PM
Subject: [Paraview] Fetching data from xdmf temporal collection

Dear all,



I am trying to fetch data out of a xdmf/h5 file.

My xdmf file is a temporal collection and the xdmf reader recognizes the time 
steps (index/values in the information block).

I would like to access the point data for each time steps. However, I seem to 
only get one time step when fetching the point data from the multi-block 
dataset and I don't know how to iterate over the different time steps.



Hope somebody can help. Thank you very much,



Jean-Michel





  _


 <http://www.avast.com/> Image supprimée par l'expéditeur.

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
www.avast.com <http://www.avast.com/>



___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview





---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Fetching data from xdmf temporal collection

2015-03-19 Thread Jean-Michel
Thank you very much Armin.

The problem was indeed to access the raw data for a time dependant format.

Using UpdatePipeline(timestep) allowed me to change the time step before
fetching the data. It works fine, although using VTK directly might indeed
be more efficient.



Jean-Michel



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Fetching data from xdmf temporal collection

2015-03-23 Thread Jean-Michel
Armin,



you said you would rather use vtk directly to access raw data in xdmf files.
I tried to follow your advice, but I struggle with the vtkXdmfReader.
Basically, here is what I do:



import vtk

reader = vtk.vtkXdmfReader()

reader.SetFileName(myfile)

reader.ReadAllScalarsOn()

reader.Update()



However, I don't know how to access the data inside reader once this is
done. The GetOutput() method doesn't seem to work. Do you know what I am
missing here ? If not, I'll try and move the discussion over at the
vtk-users list.



Thank you for your help.



Jean-Michel



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Custom filter: exposed properties of a Calculator filter

2015-09-22 Thread Jean-Michel Lucas
Hi,

 

I am trying to create a Custom Filter in ParaView 4.3.1.

 

I am having trouble with the exposed properties of a Calculator filter: when
defining the properties for my custom filter, I am selecting the "Function"
property and setting the property name for this Calculator. However, when
using the custom filter, this property name does not appear in the
Properties panel of the Object Inspector. Is this a known bug or is there
something I'm missing ?

 

Also, is it possible to hide the calculator buttons and only leave the blank
field ? This was the default behavior in (at least) ParaView 3.12.0.

 

Thank you for your help.

 

Jean-Michel

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Custom filter: exposed properties of a Calculator filter

2015-09-22 Thread Jean-Michel Lucas
Hi Cory,

 

Thank you for your answer.

 

I did remember to click the + sign, and in fact the property shows fine when 
playing the filter later on. Only the property name, which you can choose when 
designing the filter, doesn't appear in ParaView 4.3. If I open the same custom 
filter in ParaView 3.12, the name does show up.

 

Best,

Jean-Michel

 

 

De : Cory Quammen [mailto:cory.quam...@kitware.com] 
Envoyé : mercredi 23 septembre 2015 05:00
À : Jean-Michel Lucas
Cc : ParaView
Objet : Re: [Paraview] Custom filter: exposed properties of a Calculator filter

 

Jean-Michel,

 

I am not able to reproduce what you are reporting with 4.3.1 or 4.4.

 

Did you remember to click the + sign when adding the property? The first time I 
tried I forgot to do that, and the Function property was not exposed in my 
custom filter. When I did add the property, it was exposed.

 

HTH,

Cory

 

On Tue, Sep 22, 2015 at 5:07 AM, Jean-Michel Lucas  wrote:

Hi,

 

I am trying to create a Custom Filter in ParaView 4.3.1.

 

I am having trouble with the exposed properties of a Calculator filter: when 
defining the properties for my custom filter, I am selecting the "Function" 
property and setting the property name for this Calculator. However, when using 
the custom filter, this property name does not appear in the Properties panel 
of the Object Inspector. Is this a known bug or is there something I'm missing ?

 

Also, is it possible to hide the calculator buttons and only leave the blank 
field ? This was the default behavior in (at least) ParaView 3.12.0.

 

Thank you for your help.

 

Jean-Michel


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview





 

-- 

Cory Quammen
R&D Engineer
Kitware, Inc.

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Legend and labels

2015-09-23 Thread Jean-Michel Lucas
Hi Cory,

 

Thank you for these answers.

I have indeed been fiddling about with the color map editor, but I had hope for 
a way to fix the labels' font size regardless of these constraints from the 
legend size and label format.

 

Jean-Michel

 

De : Cory Quammen [mailto:cory.quam...@kitware.com] 
Envoyé : mercredi 23 septembre 2015 01:31
À : Jean-Michel
Cc : ParaView
Objet : Re: [Paraview] Legend and labels

 

Hi Jean-Michel,

 

In response to your questions:

 

1) Is it possible to adjust the spacing between the Title Texts and the labels ?

 

Unfortunately, no. This is a fixed spacing.

 

2) Is it possible to adjust the labels' font size ?

 

Yes. To change the labels' font size, open the Color Map Editor and find the 
button with the color bar and the letter "e". Clicking on this will bring up a 
dialog that lets you change the font size of the labels (Text/Annotation Font 
Properties). Note that the font size is more of a recommendation - ParaView 
will pick a font size for the label based on size constraints and the number of 
digits in the label format.

 

Cheers,

Cory

 

 

Thank you in advance for your help.

 

Jean-Michel


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview





 

-- 

Cory Quammen
R&D Engineer
Kitware, Inc.

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Legend and labels

2015-09-23 Thread Jean-Michel Lucas
Sounds great!

Another feature that would be nice would be the ability to choose manually the 
labels you want to appear on the legend (somewhat similar to the annotations) 
but maybe I'm getting a bit carried away here!

 

Cheers,

Jean-Michel

 

De : Cory Quammen [mailto:cory.quam...@kitware.com] 
Envoyé : mercredi 23 septembre 2015 15:02
À : Jean-Michel Lucas
Cc : ParaView
Objet : Re: [Paraview] Legend and labels

 

Jean-Michel,

 

As it happens, I'm currently working on a new implementation of the color 
legend that will use a fixed font size to give you more control over the color 
legend display. It should be available in ParaView 5.0.

 

Cheers,

Cory

 

On Wed, Sep 23, 2015 at 3:02 AM, Jean-Michel Lucas  wrote:

Hi Cory,

 

Thank you for these answers.

I have indeed been fiddling about with the color map editor, but I had hope for 
a way to fix the labels' font size regardless of these constraints from the 
legend size and label format.

 

Jean-Michel

 

De : Cory Quammen [mailto:cory.quam...@kitware.com] 
Envoyé : mercredi 23 septembre 2015 01:31
À : Jean-Michel
Cc : ParaView
Objet : Re: [Paraview] Legend and labels

 

Hi Jean-Michel,

 

In response to your questions:

 

1) Is it possible to adjust the spacing between the Title Texts and the labels ?

 

Unfortunately, no. This is a fixed spacing.

 

2) Is it possible to adjust the labels' font size ?

 

Yes. To change the labels' font size, open the Color Map Editor and find the 
button with the color bar and the letter "e". Clicking on this will bring up a 
dialog that lets you change the font size of the labels (Text/Annotation Font 
Properties). Note that the font size is more of a recommendation - ParaView 
will pick a font size for the label based on size constraints and the number of 
digits in the label format.

 

Cheers,

Cory

 

 

Thank you in advance for your help.

 

Jean-Michel


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview





 

-- 

Cory Quammen
R&D Engineer
Kitware, Inc.





 

-- 

Cory Quammen
R&D Engineer
Kitware, Inc.

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Custom filter: exposed properties of a Calculator filter

2015-09-23 Thread Jean-Michel Lucas
Cory,

 

Thank you for your answer, you understood my problem perfectly. I noticed the 
problem is somewhat similar when trying to incorporate a Python calculator to a 
custom filter and exposing the property name (in this case, the name remains 
'Expression' no matter what you specify when creating the filter). 

 

The reason I asked this question is that I need to design a filter that asks 
some input from the user before performing some calculations. The way I used to 
do this was by creating a calculator with the name of the quantity the user has 
to give.

 

However, I'm afraid I'm not sufficiently skilled in C++ to delve into custom 
widgets. I'll try to find a workaround.

 

Thanks again,

Jean-Michel

 

De : Cory Quammen [mailto:cory.quam...@kitware.com] 
Envoyé : mercredi 23 septembre 2015 15:11
À : Jean-Michel Lucas
Cc : ParaView
Objet : Re: [Paraview] Custom filter: exposed properties of a Calculator filter

 

Jean-Michel,

 

Thank you for clarifying, I think I understand now. So you see the calculator 
buttons and text field for entering the expression? And you want the name of 
the property to appear in the label?

 

For this property, a custom widget is used in the Properties panel that does 
not display the property name. Hence, the property name does not show up. I see 
that in 3.14 the Function is displayed with a simple text field - you don't get 
the calculator buttons.

 

We'd have to change the custom widget to display the property name. This would 
be a relatively simple change that I could walk you through if you'd like to 
contribute to the ParaView source code.

 

Let me know if you are interested.

 

Thanks,

Cory

 

On Wed, Sep 23, 2015 at 2:43 AM, Jean-Michel Lucas  wrote:

Hi Cory,

 

Thank you for your answer.

 

I did remember to click the + sign, and in fact the property shows fine when 
playing the filter later on. Only the property name, which you can choose when 
designing the filter, doesn't appear in ParaView 4.3. If I open the same custom 
filter in ParaView 3.12, the name does show up.

 

Best,

Jean-Michel

 

 

De : Cory Quammen [mailto:cory.quam...@kitware.com] 
Envoyé : mercredi 23 septembre 2015 05:00
À : Jean-Michel Lucas
Cc : ParaView
Objet : Re: [Paraview] Custom filter: exposed properties of a Calculator filter

 

Jean-Michel,

 

I am not able to reproduce what you are reporting with 4.3.1 or 4.4.

 

Did you remember to click the + sign when adding the property? The first time I 
tried I forgot to do that, and the Function property was not exposed in my 
custom filter. When I did add the property, it was exposed.

 

HTH,

Cory

 

On Tue, Sep 22, 2015 at 5:07 AM, Jean-Michel Lucas  wrote:

Hi,

 

I am trying to create a Custom Filter in ParaView 4.3.1.

 

I am having trouble with the exposed properties of a Calculator filter: when 
defining the properties for my custom filter, I am selecting the "Function" 
property and setting the property name for this Calculator. However, when using 
the custom filter, this property name does not appear in the Properties panel 
of the Object Inspector. Is this a known bug or is there something I'm missing ?

 

Also, is it possible to hide the calculator buttons and only leave the blank 
field ? This was the default behavior in (at least) ParaView 3.12.0.

 

Thank you for your help.

 

Jean-Michel


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview





 

-- 

Cory Quammen
R&D Engineer
Kitware, Inc.





 

-- 

Cory Quammen
R&D Engineer
Kitware, Inc.

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Customize programmable filters: copy arrays

2015-11-10 Thread Jean-Michel Lucas
Dear all,

 

I have been using this method (http://www.kitware.com/blog/home/post/534) to
create programmable filters as XML plugins, and things work fine.

 

With this method, is there a way I can copy the arrays in the input data to
the output ? Programmable filters have a box 'Copy Arrays' that you can
check: I am looking to access this property in my script so the
python_filter_generator can translate it.

 

Thanks in advance,

 

Jean-Michel

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Customize programmable filters: copy arrays

2015-11-12 Thread Jean-Michel Lucas
Thank you for your answers, both methods work fine.

I am also adding new variables to the output, so if I understood Dennis'
answer correctly, I should be using DeepCopy() ? However, using PassData(),
it seems to me the new variable is only added to the output. 

 

Jean-Michel

 

From: Dennis Conklin 

To: Berk Geveci 

Cc: "Paraview \(paraview@paraview.org\)" 

Subject: Re: [Paraview] [EXT] Re: Customize programmable filters: copy

arrays

Message-ID:

 




Content-Type: text/plain; charset="utf-8"

 

Berk,

 

I generally want to add some new variables to the output ? if I don?t
DeepCopy, then these new variables get added to the input which violates the
vtk rule that a filter can?t change the input.

 

This is the main reason that I advocate adding the capability for PointData
and CellData to be partially DeepCopy (new variables added in Filter)  and
partially ShallowCopy (input variables just along for the ride).

 

I suspect most filters are going to generate new variables, so DeepCopy
seems to be appropriate. Please correct me if I misunderstand this.

 

Dennis

 

From: Berk Geveci [mailto:berk.gev...@kitware.com]

Sent: Tuesday, November 10, 2015 3:40 PM

To: Dennis Conklin 

Cc: Paraview (paraview@paraview.org) 

Subject: [EXT] Re: [Paraview] Customize programmable filters: copy arrays

 

Don't use DeepCopy() unless you intend to change the values of the output
arrays. Use ShallowCopy() instead. You don't need CopyStructure() by the
way. Alternatively, you can use PassData(). Something like this:

 

output.GetPointData().PassData(inputs[0].GetPointData())

output.GeCellData().PassData(inputs[0].GetCellData())

 

 

Best,

-berk

 

On Tue, Nov 10, 2015 at 1:49 PM, Dennis Conklin <
<mailto:dennis_conk...@goodyear.com%3cmailto:dennis_conk...@goodyear.com>
dennis_conk...@goodyear.com<mailto:dennis_conk...@goodyear.com>> wrote:

Jean-Michel,

 

I normally just add the following two statements within my Filter:

 

output.CopyStructure(inputs[0].VTKObject)

output.DeepCopy(inputs[0].VTKObject)

 

Dennis

 

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Optimize Programmable Filter execution

2016-02-25 Thread Jean-Michel Lucas
Dear all,

 

I currently have a Programmable Filter that takes a long time to execute and I 
am looking for a way to optimize it.

The code loops over a large number of points and I have a lot of operations 
involving numpy arrays.

What are the possible steps that I could follow to make the execution faster ? 
The question is not very specific, I am looking for general guidelines.

 

Thanks in advance,

Jean-Michel

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Parallel visualizations of Xdmf datasets

2016-03-11 Thread Jean-Michel Lucas
Hi everyone,

 

I am trying to use ParaView for parallel visualizations. I have successfully 
compiled ParaView 4.3.1 and tested it by creating a sphere on several 
processors and visualizing the Process Ids.

 

When reading an Xdmf file however, it seems that only one processor is loading 
the data: am I correct in assuming that this is the normal behavior for 
unstructured datasets ? I used the D3 filter to do some load-balancing after 
reading the data, but I don't know if this is necessary for subsequent filters 
to work in parallel ?

 

Also, it seems from the memory inspector that ParaView duplicates the memory 
footprint of the data on each processor, which quickly becomes a problem for 
large datasets. Is this the expected behavior, or does it depend on the 
reader/data format ?

 

Any information on this matter would be greatly appreciated.

Jean-Michel

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Python script for aero-optic analysis of CFD

2016-12-11 Thread Jean-Michel Lucas
Dear Ben,

 

Your data reside on the server side of ParaView, so you can't access it
through ParaView proxies (like plotOverLine). Proxies only let you access
some info about the data, like min and max.

You have two options to access the whole array :

- fetch  the data from the server to the client using servermanager.Fetch
(this may be computationally costly depending on the size of the data) ;

- or access the data on the server side using a programmable filter.

 

HTH,

Jean-Michel

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview