[Paraview] CoProcessing -> Export State
Andy Bauer
andy.bauer at kitware.com
Wed Sep 1 18:45:43 EDT 2010
The other person that mentioned this problem also didn't seem to have the
servermanager.py file updated in the build directory even though they
updated their code in the source tree. I'll check on that to see why it's
happening.
Thanks,
Andy
On Wed, Sep 1, 2010 at 6:16 PM, Fabian, Nathan <ndfabia at sandia.gov> wrote:
> Okay thanks. Apparently, I’m doing some version of building that
> includes not bringing those updates over from the src directory to the build
> directory...
>
>
> On 9/1/10 4:08 PM, "Andy Bauer" <andy.bauer at kitware.com> wrote:
>
> 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 <http://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/24c5a0c7/attachment.htm>
More information about the ParaView
mailing list