[Paraview] CoProcessing -> Export State

Andy Bauer andy.bauer at kitware.com
Wed Sep 1 18:08:58 EDT 2010


This was fixed a little while ago.  Try updating paraview if you can.  The
change servermanager.py is:
@@ -796,6 +796,10 @@ class ArraySelectionProperty(
VectorProperty):
         elif len(values) == 2:
             if isinstance(values[0], str):
                 val = str(ASSOCIATIONS[values[0]])
+            else:
+                # In case user didn't specify valid association,
+                # just pick POINTS.
+                val = str(ASSOCIATIONS['POINTS'])

             self.SMProperty.SetElement(3,  str(val))
             self.SMProperty.SetElement(4, values[1])
         else:

Andy


On Wed, Sep 1, 2010 at 5:43 PM, Fabian, Nathan <ndfabia at sandia.gov> wrote:

> Hi,
>
> When I export state with the image data into the coprocessing python script
> it includes some properties which don't appear when I use coprocessing.
>  For
> instance, "DataRepresentation1.SelectOrientationVectors = [None, '']".  It
> complains with:
>
>  File
>
> "/Users/ndfabia/Desktop/Work/ParaView_build/Utilities/VTKPythonWrapping/para
> view/servermanager.py", line 2367, in setProperty
>    return self.SetPropertyWithName(propName, value)
>  File
>
> "/Users/ndfabia/Desktop/Work/ParaView_build/Utilities/VTKPythonWrapping/para
> view/servermanager.py", line 256, in SetPropertyWithName
>    prop.SetData(arg)
>  File
>
> "/Users/ndfabia/Desktop/Work/ParaView_build/Utilities/VTKPythonWrapping/para
> view/servermanager.py", line 799, in SetData
>    self.SMProperty.SetElement(3,  str(val))
> UnboundLocalError: local variable 'val' referenced before assignment
>
> It's using the same paraview to export the script as is running insitu...
> Does anyone have a suggestion as to what I'm missing?
>
> Thanks,
> Nathan.
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100901/6920c4ef/attachment.htm>


More information about the ParaView mailing list