Hi,
I am new to Paraview and Python coding so please be gentle
I used this basic code to get the Field Data from the spreadsheet after using CellSize to compute the sum of the cells volume and it worked flawlessly.
from paraview.simple import *
import numpy as np
CellSize = GetActiveSource()
raw_data_handle = servermanager.Fetch(CellSize)
raw_data= np.asarray(raw_data_handle.GetFieldData().GetArray('Volume'))
However now I need to get the individual cell volumes from Cell Data. I tried GetCellData() instead of GetFieldData() as I have seen it work in many other threads, but I always get this error:
AttributeError: ‘vtkmodules.vtkCommonDataModel.vtkMultiBlockDataSet’ object has no attribute ‘GetCellData’
Am I using GetCellData() incorrectly or do I need to use some other way to get my Cell Data (Volume)?