With Paraview 5.11.0 I get some warnings when calling the calculator filter in the Python Shell. I have tried to inspect the trace and found a difference - but even with this modification the warnings persist. Does someone have an idea how I should modify the code?
Before calling the calculator, I load an xyz-file:
myfile = VisItXYZReader(FileName='Z:/projects/myfile.xyz') myfile.Meshes = ['mesh'] myfile.PointArrays.SelectAll() rv1 = GetActiveViewOrCreate('RenderView') Disp = Show(myfile, rv1,'GeometryRepresentation')
Then I used to call the calculator like this:
calc = Calculator(Input=myfile). The trace showed a second input to the function
calc = Calculator(registrationName='Calc', Input=myfile).
Using this in the Python Shell still produces warnings:
warning: In unknown, line 0 warning: QObject::connect: No such slot pqExpressionsWidget::clear() warning: In unknown, line 0 warning: QObject::connect: (sender name: 'Clear') warning: In unknown, line 0 warning: QObject::connect: (receiver name: 'Function')
Thanks for your help! Cheers,