diff options
author | 2017-03-23 15:53:18 -0700 | |
---|---|---|
committer | 2017-03-23 15:53:54 -0700 | |
commit | 96160b4f3e16a3741e99139582687539776b1331 (patch) | |
tree | 0ed2d48cfa256e3bdfc31ddbe48641f8b7cf3bb4 /Python/pywarpx/PGroup.py | |
parent | a6698c6c64dccb31f53419580c14cd874bd40ed4 (diff) | |
download | WarpX-96160b4f3e16a3741e99139582687539776b1331.tar.gz WarpX-96160b4f3e16a3741e99139582687539776b1331.tar.zst WarpX-96160b4f3e16a3741e99139582687539776b1331.zip |
Upated high level Python to match changes in Langmuir
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 = [] |