View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014816ParaView(No Category)public2014-06-20 19:232015-06-04 18:28
ReporterAlan Scott 
Assigned ToUtkarsh Ayachit 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Versiongit-master 
Target VersionFixed in Version4.3 
Summary0014816: Python calculator doesn't create scalars properly
DescriptionThe 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.
TagsNo tags attached.
ProjectSandia
Topic Name
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0033956)
Utkarsh Ayachit (administrator)
2014-12-14 12:19

This seems to work after the changes to the Python/VTK data processing infrastructure with 4.2. The original expression "max(ACCL)" works as expected -i.e. a new array, "result" is added to the output point-data with the a constant value.
(0034487)
Alan Scott (manager)
2015-06-04 18:28

Tested master, Linux, local server. My numpy is messed up remotely, thus can't test remote.

 Issue History
Date Modified Username Field Change
2014-06-20 19:23 Alan Scott New Issue
2014-12-14 12:19 Utkarsh Ayachit Note Added: 0033956
2014-12-14 12:19 Utkarsh Ayachit Status backlog => gatekeeper review
2014-12-14 12:19 Utkarsh Ayachit Fixed in Version => git-master
2014-12-14 12:19 Utkarsh Ayachit Resolution open => no change required
2014-12-14 12:19 Utkarsh Ayachit Assigned To => Utkarsh Ayachit
2014-12-14 12:19 Utkarsh Ayachit Status gatekeeper review => customer review
2015-01-02 10:43 Utkarsh Ayachit Fixed in Version git-master => 4.3
2015-06-04 18:28 Alan Scott Note Added: 0034487
2015-06-04 18:28 Alan Scott Status customer review => closed


Copyright © 2000 - 2018 MantisBT Team