The use of avg in Python calculator

I obtained the time averaged particle content (pvf) in this slice, but it is the time averaged value for each grid. Now I want to get the average value of these grid values. I choose to use Python calculator, but when I input it, it always gives an error. Is there any solution.

Reduction operation cannot be performed using the python calculator, use either a Statistic filter like DescriptiveStatistic or use a Programmable Filter instead.

I see that I can use something like mean(inputs[0].CellData['ids'])
Is this something not recommended?

Thank you for your reply. I will try it out

Thank you for your reply

you are absolutely correct, that will compute means at the block level, I forgot about the possibility to select FieldData association :slight_smile:

1 Like