aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
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,