Re: [Paraview] Determining the paraview-version from a Python-script

2009-08-31 Thread pat marion
Hi Bernhard, The c++ class, vtkSMProxyManager, gets wrapped by a python class. So dir(pxm) only shows you the methods added by the python class. To see the available c++ methods, try dir(pxm.SMProxyManager) The proxy manager is a special case, most pvpython objects are instances of Proxy and yo

Re: [Paraview] Determining the paraview-version from a Python-script

2009-08-31 Thread Bernhard Gschaider
> On Mon, 31 Aug 2009 08:50:19 -0400 > "UA" == Utkarsh Ayachit wrote: UA> To obtain the version number, you can do something as follows: from paraview.simple import * pxm = servermanager.ProxyManager() pxm.GetVersionMajor() pxm.GetVersionMinor() pxm.GetVersi

Re: [Paraview] Determining the paraview-version from a Python-script

2009-08-31 Thread Utkarsh Ayachit
To obtain the version number, you can do something as follows: >>> from paraview.simple import * >>> pxm = servermanager.ProxyManager() >>> pxm.GetVersionMajor() >>> pxm.GetVersionMinor() >>> pxm.GetVersionPatch() Utkarsh On Mon, Aug 31, 2009 at 8:14 AM, Bernhard Gschaider wrote: > > Thanks for

Re: [Paraview] Determining the paraview-version from a Python-script

2009-08-31 Thread Bernhard Gschaider
Thanks for the answer. > On Mon, 31 Aug 2009 12:50:35 +0200 > "JMF" == Jean M Favre wrote: JMF> Bernhard Gschaider wrote: >> Hi! >> >> I have a script that I want to keep compatible with 3.4 and 3.6 >> (or at least it should fail with a meaningful error message on

[Paraview] Determining the paraview-version from a Python-script

2009-08-31 Thread Bernhard Gschaider
Hi! I have a script that I want to keep compatible with 3.4 and 3.6 (or at least it should fail with a meaningful error message on 3.4). To do so I want to find out which paraview-version the script is running on. I did not find an API-call paraview.GetVersion() or similar. The only two ways I fo