That's not how you use the Python Histogram function. First of all, it doesn't just assume that the first argument is the name of the input array. Second, input arrays are specified with identifiers contained in strings. The Python interpreter thinks q is the Python variable q, not the field name.
Your script should look something like the following. reader = ExodusIIReader(Filename='out.e') histogram = Histogram() histogram.SelectInputArray = 'q' histogram.BinCount = 30 Try using the stack trace if you are having trouble determining the right Python functions to call. -Ken From: John Mangeri <[email protected]<mailto:[email protected]>> Date: Thursday, August 28, 2014 3:02 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [EXTERNAL] [Paraview] How to call a specifc data set from a multi-block ExodusII data set? I'm currently trying to do something simple. I have a ElementVariable q in my .e file. I read them into the pipeline with reader = ExodusIIReader(FileName = 'out.e') I want to use histogram = Histogram(q,BinCount=30) but I recieve the following error: Traceback (most recent call last): File "<console>", line 1, in <module>NameError: name 'q' is not defined What is going on here? Thanks John
_______________________________________________ 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://public.kitware.com/mailman/listinfo/paraview
