diff options
author | 2019-07-12 16:45:47 -0700 | |
---|---|---|
committer | 2019-07-12 16:45:47 -0700 | |
commit | 59ed7a185daa76ab795bfc31b28bbf44ba693edd (patch) | |
tree | abc8036bc4a4c2f81c8ca91eeb454e8ecac61e42 /Python/pywarpx/PGroup.py | |
parent | 9c96b45f224cd554726faeac1f2641a2730f233b (diff) | |
parent | 2ad0aca22bc7343be94d7eb248344b797a37ef93 (diff) | |
download | WarpX-59ed7a185daa76ab795bfc31b28bbf44ba693edd.tar.gz WarpX-59ed7a185daa76ab795bfc31b28bbf44ba693edd.tar.zst WarpX-59ed7a185daa76ab795bfc31b28bbf44ba693edd.zip |
Merge pull request #212 from ECP-WarpX/python_update
Python interface update
Diffstat (limited to 'Python/pywarpx/PGroup.py')
-rw-r--r-- | Python/pywarpx/PGroup.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/pywarpx/PGroup.py b/Python/pywarpx/PGroup.py index 68b37740d..48e68ceb5 100644 --- a/Python/pywarpx/PGroup.py +++ b/Python/pywarpx/PGroup.py @@ -83,6 +83,10 @@ class PGroup(object): return _libwarpx.get_particle_y(self.ispecie)[self.igroup] yp = property(getyp) + def getrp(self): + return _libwarpx.get_particle_r(self.ispecie)[self.igroup] + rp = property(getrp) + def getzp(self): return _libwarpx.get_particle_z(self.ispecie)[self.igroup] zp = property(getzp) @@ -136,6 +140,10 @@ class PGroup(object): return _libwarpx.get_particle_Bz(self.ispecie)[self.igroup] bz = property(getbz) + def gettheta(self): + return _libwarpx.get_particle_theta(self.ispecie)[self.igroup] + theta = property(gettheta) + class PGroups(object): def __init__(self, ispecie=0): self.ispecie = ispecie |