Python calculator doesn't create scalars properly
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The python calculator isn't creating per point scalars properly. Here is how to replicate it.
- Local server, Linux, 4.1.
- Open can.exo. All variables on. Apply.
- Just for fun (and clarity), go one timestep forward, and color by ACCL.
Now, our goal is to create a maximum ACCL variable for every point.
- Python Calculator. Expression is max(ACCL). Apply.
Error message is as follows: ERROR: In ...src/ParaView/4.1.0/ParaView4/VTK/Common/DataModel/vtkDataSet.cxx, line 414 vtkUnstructuredGrid (0x72ccc80): Point array result with 1 components, only has 3 tuples but there are 6724 points
So, what we really want to do is take this maximum, and create a scalar per point. There is a very poor way to do this - as follows:
Expression ((ACCL - ACCL)+1)*max(ACCL)
Either this needs to be fixed, or we need a new function, or a checkbox in the Python calculator, or something.