View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012607ParaView(No Category)public2011-09-20 15:142011-11-28 14:45
ReporterAndy Bauer 
Assigned ToAndy Bauer 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versiongit-master 
Target Version3.12Fixed in Version3.12 
Summary0012607: problem with coprocessing plugin when exporting an image from a bar chart view
DescriptionCharge 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.
TagsNo tags attached.
ProjectTBD
Topic Name12607-python-trace-fixes
Typeincorrect functionality
Attached Files? file icon histo.py [^] (6,139 bytes) 2011-09-20 15:14
tgz file icon cp.tgz [^] (3,270 bytes) 2011-09-21 10:26
? file icon cplineplotview.py [^] (6,106 bytes) 2011-09-21 10:50
? file icon cpparallelcoordsview.py [^] (5,111 bytes) 2011-09-21 10:56

 Relationships

  Notes
(0027511)
Andy Bauer (developer)
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 (developer)
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 (developer)
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 (developer)
2011-10-05 11:40

Note when generating the python script through the plugin to name the source as "input".
(0027553)
David Partyka (developer)
2011-10-07 20:45

Merged into master
(0027739)
Andy Bauer (developer)
2011-11-28 14:45

Confirmed with the line plot view and the barchart view.

 Issue History
Date Modified Username Field Change
2011-09-20 15:14 Andy Bauer New Issue
2011-09-20 15:14 Andy Bauer Assigned To => Pat Marion
2011-09-20 15:14 Andy Bauer File Added: histo.py
2011-09-21 10:26 Andy Bauer Note Added: 0027511
2011-09-21 10:26 Andy Bauer File Added: cp.tgz
2011-09-21 10:49 Andy Bauer Note Added: 0027512
2011-09-21 10:50 Andy Bauer File Added: cplineplotview.py
2011-09-21 10:56 Andy Bauer File Added: cpparallelcoordsview.py
2011-09-21 10:57 Andy Bauer Note Added: 0027513
2011-10-05 11:40 Andy Bauer Note Added: 0027542
2011-10-05 14:31 Andy Bauer Target Version => 3.12
2011-10-07 10:26 Andy Bauer Assigned To Pat Marion => Andy Bauer
2011-10-07 10:26 Andy Bauer Topic Name => 12607-python-trace-fixes
2011-10-07 10:26 Andy Bauer Status backlog => gatekeeper review
2011-10-07 10:26 Andy Bauer Resolution open => fixed
2011-10-07 20:45 David Partyka Note Added: 0027553
2011-10-07 20:45 David Partyka Status gatekeeper review => customer review
2011-11-11 17:08 Utkarsh Ayachit Fixed in Version => 3.12
2011-11-28 14:45 Andy Bauer Note Added: 0027739
2011-11-28 14:45 Andy Bauer Status customer review => closed


Copyright © 2000 - 2018 MantisBT Team