diff options
Diffstat (limited to 'Python/pywarpx/PGroup.py')
-rw-r--r-- | Python/pywarpx/PGroup.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/pywarpx/PGroup.py b/Python/pywarpx/PGroup.py index bf59d5ce5..92f6b4484 100644 --- a/Python/pywarpx/PGroup.py +++ b/Python/pywarpx/PGroup.py @@ -132,8 +132,9 @@ class PGroup(object): bz = property(getbz) class PGroups(object): - def __init__(self): - xall = _libwarpx.get_particle_x(0) + def __init__(self, ispecie=0): + self.ispecie = ispecie + xall = _libwarpx.get_particle_x(ispecie) self.ngroups = len(xall) self._pgroups = [] |