MantisBT - ParaView
View Issue Details
0012607ParaView(No Category)public2011-09-20 15:142011-11-28 14:45
Andy Bauer 
Andy Bauer 
normalminorhave not tried
closedfixed 
git-master 
3.123.12 
TBD
12607-python-trace-fixes
incorrect functionality
0012607: problem with coprocessing plugin when exporting an image from a bar chart view
Charge the army cfd phase II enhancement project.

Steps to reproduce:
1. load the coprocessing plugin
2. create a Mandelbrot source
3. create a histogram filter
4. close the 2d/3d view to leave only the bar chart view
5. export the coprocessing script and check "output rendering components i.e. view"
6. save the python script

Now when viewing the script the Histogram1 filter is referenced in GetDisplayProperties() before it is created. Attached is my script showing the error.
No tags attached.
? histo.py (6,139) 2011-09-20 15:14
https://www.vtk.org/Bug/file/9033/histo.py
tgz cp.tgz (3,270) 2011-09-21 10:26
https://www.vtk.org/Bug/file/9035/cp.tgz
? cplineplotview.py (6,106) 2011-09-21 10:50
https://www.vtk.org/Bug/file/9036/cplineplotview.py
? cpparallelcoordsview.py (5,111) 2011-09-21 10:56
https://www.vtk.org/Bug/file/9037/cpparallelcoordsview.py
Issue History
2011-09-20 15:14Andy BauerNew Issue
2011-09-20 15:14Andy BauerAssigned To => Pat Marion
2011-09-20 15:14Andy BauerFile Added: histo.py
2011-09-21 10:26Andy BauerNote Added: 0027511
2011-09-21 10:26Andy BauerFile Added: cp.tgz
2011-09-21 10:49Andy BauerNote Added: 0027512
2011-09-21 10:50Andy BauerFile Added: cplineplotview.py
2011-09-21 10:56Andy BauerFile Added: cpparallelcoordsview.py
2011-09-21 10:57Andy BauerNote Added: 0027513
2011-10-05 11:40Andy BauerNote Added: 0027542
2011-10-05 14:31Andy BauerTarget Version => 3.12
2011-10-07 10:26Andy BauerAssigned ToPat Marion => Andy Bauer
2011-10-07 10:26Andy BauerTopic Name => 12607-python-trace-fixes
2011-10-07 10:26Andy BauerStatusbacklog => gatekeeper review
2011-10-07 10:26Andy BauerResolutionopen => fixed
2011-10-07 20:45David PartykaNote Added: 0027553
2011-10-07 20:45David PartykaStatusgatekeeper review => customer review
2011-11-11 17:08Utkarsh AyachitFixed in Version => 3.12
2011-11-28 14:45Andy BauerNote Added: 0027739
2011-11-28 14:45Andy BauerStatuscustomer review => closed

Notes
(0027511)
Andy Bauer   
2011-09-21 10:26   
There's also a problem with creating images from 2d views. I'm attaching cp.tgz which can be used to demonstrate the problem. Run with "pvpython pkfdriver.py cp2dview.py 3". The cp2dview.py script was generated from the coprocessing plugin. The error message when running is:
acbauer@yavin:/media/ssddrive/BUILDS/ParaView/debug$ bin/pvpython pkfdriver.py cp2dview.py 3
getting appended
Traceback (most recent call last):
  File "pkfdriver.py", line 58, in <module>
    coProcess(imageData, time, step, sys.argv[1])
  File "pkfdriver.py", line 37, in coProcess
    cpscript.DoCoProcessing(datadescription)
  File "/media/ssddrive/BUILDS/ParaView/debug/cp2dview.py", line 53, in DoCoProcessing
    a2DRenderView2.AxesVisibility = 0
  File "/media/ssddrive/BUILDS/ParaView/debug/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py", line 209, in __setattr__
    "to add this attribute.")
AttributeError: Attribute AxesVisibility does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute.
(0027512)
Andy Bauer   
2011-09-21 10:49   
Going through the views I'm also having problems with the line plot view. I attached cplineplotview.py which can be run with "pvpython cplineplotview.py 3". This gives the following error:
acbauer@yavin:/media/ssddrive/BUILDS/ParaView/debug$ bin/pvpython pkfdriver.py cplineplotview.py 3
getting appended
Traceback (most recent call last):
  File "pkfdriver.py", line 58, in <module>
    coProcess(imageData, time, step, sys.argv[1])
  File "pkfdriver.py", line 37, in coProcess
    cpscript.DoCoProcessing(datadescription)
  File "/media/ssddrive/BUILDS/ParaView/debug/cplineplotview.py", line 29, in DoCoProcessing
    DataRepresentation4 = GetDisplayProperties(PlotOverLine1)
UnboundLocalError: local variable 'PlotOverLine1' referenced before assignment
(0027513)
Andy Bauer   
2011-09-21 10:57   
Same problems with parallel coordinates view. I attached cpparallelcoordsview.py coprocessing script. Run as "pvpython pkfdriver.py cpparallelcoordsview.py 3". The output is:
acbauer@yavin:/media/ssddrive/BUILDS/ParaView/debug$ bin/pvpython pkfdriver.py cpparallelcoordsview.py 3
getting appended
Traceback (most recent call last):
  File "pkfdriver.py", line 58, in <module>
    coProcess(imageData, time, step, sys.argv[1])
  File "pkfdriver.py", line 37, in coProcess
    cpscript.DoCoProcessing(datadescription)
  File "/media/ssddrive/BUILDS/ParaView/debug/cpparallelcoordsview.py", line 29, in DoCoProcessing
    DataRepresentation13 = GetDisplayProperties(Histogram1)
UnboundLocalError: local variable 'Histogram1' referenced before assignment
(0027542)
Andy Bauer   
2011-10-05 11:40   
Note when generating the python script through the plugin to name the source as "input".
(0027553)
David Partyka   
2011-10-07 20:45   
Merged into master
(0027739)
Andy Bauer   
2011-11-28 14:45   
Confirmed with the line plot view and the barchart view.