aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/PGroup.py
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2019-07-22 13:30:44 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2019-07-22 13:30:44 -0700
commit9eff1e737a556d0e18f1a2e2b7c191ae4e2ced5d (patch)
tree0eda3fba6bc797a6f6dd874538d12db605abb902 /Python/pywarpx/PGroup.py
parent8f9c13a90feb1749d5bfff338285c3ccec7314d2 (diff)
parent8bfa6e2399c1e568d6f5305d3280397aadf9a4fe (diff)
downloadWarpX-9eff1e737a556d0e18f1a2e2b7c191ae4e2ced5d.tar.gz
WarpX-9eff1e737a556d0e18f1a2e2b7c191ae4e2ced5d.tar.zst
WarpX-9eff1e737a556d0e18f1a2e2b7c191ae4e2ced5d.zip
Merge branch 'dev' into EBpush_to_cpp
Diffstat (limited to 'Python/pywarpx/PGroup.py')
-rw-r--r--Python/pywarpx/PGroup.py8
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