diff options
author | 2020-08-31 13:29:28 -0700 | |
---|---|---|
committer | 2020-08-31 13:29:28 -0700 | |
commit | 0be22ab3a86b62ebcadde45192864b383f28156f (patch) | |
tree | 41a9b0d48a07d614f74c92bc93f57f981e1aef94 /Python/pywarpx/picmi.py | |
parent | 075fd83a01b3084d8bc49bc308d8251783ce5c72 (diff) | |
download | WarpX-0be22ab3a86b62ebcadde45192864b383f28156f.tar.gz WarpX-0be22ab3a86b62ebcadde45192864b383f28156f.tar.zst WarpX-0be22ab3a86b62ebcadde45192864b383f28156f.zip |
[mini]Bug fix in ParticleListDistribution (#1252)
This fixes a small bug in the `picmi.ParticleListDistribution` class.
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r-- | Python/pywarpx/picmi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 940e1d017..ab90b923a 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -270,7 +270,7 @@ class AnalyticDistribution(picmistandard.PICMI_AnalyticDistribution): class ParticleListDistribution(picmistandard.PICMI_ParticleListDistribution): def init(self, kw): - if len(x) > 1: + if len(self.x) > 1: raise Exception('Only a single particle can be loaded') def initialize_inputs(self, species_number, layout, species, density_scale): |