From b5a6ebb05c31f43fe68fa4a684d8d51086e1c4db Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Mon, 3 Nov 2014 13:56:32 +0100 Subject: [PATCH] Export the totalNumParticles field --- python/_cosmotool.pyx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/_cosmotool.pyx b/python/_cosmotool.pyx index 4957ec2..0b94123 100644 --- a/python/_cosmotool.pyx +++ b/python/_cosmotool.pyx @@ -185,6 +185,11 @@ cdef class Simulation: def __get__(Simulation self): return self.data.NumPart + + property totalNumParticles: + def __get__(Simulation self): + return self.data.TotalNumPart + def __cinit__(Simulation self): self.data = 0