aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2020-01-09 16:56:10 -0800
committerGravatar Dave Grote <grote1@llnl.gov> 2020-01-09 16:56:10 -0800
commit0c593f22cd3c5571ff89ddc32a6b7b205815ead2 (patch)
tree2643247e68b2ef7c7ddc4837f73b2ab7d6ea51c6 /Python/pywarpx/picmi.py
parent8f23eb12d388e55dc7f1cc0b9fc426380fa1740c (diff)
downloadWarpX-0c593f22cd3c5571ff89ddc32a6b7b205815ead2.tar.gz
WarpX-0c593f22cd3c5571ff89ddc32a6b7b205815ead2.tar.zst
WarpX-0c593f22cd3c5571ff89ddc32a6b7b205815ead2.zip
For picmi, minor clean up
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r--Python/pywarpx/picmi.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index 28dde05e6..70f356475 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -63,10 +63,7 @@ class Species(picmistandard.PICMI_Species):
if self.name is None:
self.name = 'species{}'.format(self.species_number)
- if pywarpx.particles.species_names is None:
- pywarpx.particles.species_names = self.name
- else:
- pywarpx.particles.species_names += ' ' + self.name
+ pywarpx.particles.species_names.append(self.name)
self.species = pywarpx.Bucket.Bucket(self.name,
mass = self.mass,