[Paraview] Problem with number of arguments in a Python Catalyst script

Dorier, Matthieu mdorier at anl.gov
Thu Sep 10 16:00:17 EDT 2015


I'll try and keep you posted.

(in the mean time I noticed a problem in the code I sent, I was using vtkDoubleArray instead of vtkIntArray. But after correction the same error is still present).

Matthieu
________________________________
From: Utkarsh Ayachit [utkarsh.ayachit at kitware.com]
Sent: Thursday, September 10, 2015 2:40 PM
To: Dorier, Matthieu
Cc: David E DeMarle; paraview at paraview.org
Subject: Re: [Paraview] Problem with number of arguments in a Python Catalyst script

Looks like edition is not sufficient for the visualization you're putting together. Is it possible to use a full ParaView build?

Utkarsh

On Thu, Sep 10, 2015 at 2:24 PM, Dorier, Matthieu <mdorier at anl.gov<mailto:mdorier at anl.gov>> wrote:
Hi,

I'm attaching my code.

This is a simple code that computes a "mandelbulb" fractal, and passes it to Catalyst for rendering. There is an example of data produced by this "simulation" in binary .raw format that can be read in ParaView (it contains a 60x60x61 array of int in BigEndian). I generated the script by opening this file, rendering a contour, and setting a few parameters such as background color, axis opacity, etc.
The code can be run by calling ./Madelbulb renderbulb.py

Thanks for your help,

Matthieu

________________________________
From: Dorier, Matthieu
Sent: Thursday, September 10, 2015 11:18 AM
To: Utkarsh Ayachit; David E DeMarle
Cc: paraview at paraview.org<mailto:paraview at paraview.org>
Subject: RE: [Paraview] Problem with number of arguments in a Python Catalyst script

Thanks, adding the argument removed the error, but now I have another one:

ERROR: In /home/mdorier/Catalyst-src/ParaViewCore/ServerImplementation/Core/vtkSIProxy.cxx, line 310
vtkSISourceProxy (0x34ad8a0): Failed to create vtkImageSliceRepresentation. Aborting for debugging purposes.
Aborted (core dumped)

Any idea how to solve this?

Thanks,

Matthieu

________________________________
From: Utkarsh Ayachit [utkarsh.ayachit at kitware.com<mailto:utkarsh.ayachit at kitware.com>]
Sent: Thursday, September 10, 2015 11:10 AM
To: Dorier, Matthieu; David E DeMarle
Cc: paraview at paraview.org<mailto:paraview at paraview.org>
Subject: Re: [Paraview] Problem with number of arguments in a Python Catalyst script

Matthieu,

That's indeed the case: try adding a `cinema={}` argument to the script.

Dave, can we fix this please? Scripts generated from 4.3.1 should work with 4.4 too.

Utkarsh

On Thu, Sep 10, 2015 at 12:05 PM, Dorier, Matthieu <mdorier at anl.gov<mailto:mdorier at anl.gov>> wrote:
Hi,

I generated a script for in situ visualization with Catalyst. When running it in situ, I get the following error:
TypeError: RegisterView() takes exactly 9 arguments (8 given)

The line in question in the script is:

coprocessor.RegisterView(renderView1,
    filename='image_%t.png', freq=1, fittoscreen=0, magnification=1, width=1231, height=887)

I'm generated the script using ParaView 4.3.1, while the version of Catalyst used on the machine is 4.4 RC2, might that be the problem? If so what argument is missing? Can I simply manually add it in the script or should I re-generate the script with ParaView 4.4?

Thanks,

Matthieu

_______________________________________________
Powered by www.kitware.com<http://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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150910/18803899/attachment.html>


More information about the ParaView mailing list