Re: [Paraview] need some help reading data in pvpython

2016-06-23 Thread Utkarsh Ayachit
Here's a snippet: reader = ... di = reader.GetDataInformation() numDatasets = di.GetNumberOfDataSets() for i in range(numDatasets): blockDI = di.GetCompositeDataInformation().GetDataInformation(i) print i, "Num Points", blockDI.GetNumberOfPoints() print i, "Num Cells",

[Paraview] need some help reading data in pvpython

2016-06-22 Thread Beach, Timothy A. (GRC-LTE0)[Vantage Partners, LLC]
I’ve done some neat stuff with pvpython but I’m stuck on something really basic. I’ve read a structured multi block dataset(plot3d). Where do I find the number of blocks and the size of each block. I’ve been using help and dir() but I haven’t found that info. Thanks Tim