From e1defec69aed17325985e183bedd83647bd74f33 Mon Sep 17 00:00:00 2001 From: KZhu-ME <86268612+KZhu-ME@users.noreply.github.com> Date: Thu, 15 Jul 2021 06:38:16 -0700 Subject: Changed species to self.species as species is not defined (#2087) --- Python/pywarpx/picmi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pywarpx/picmi.py') diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index d73e954ef..012811c0b 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -1003,7 +1003,7 @@ class ParticleDiagnostic(picmistandard.PICMI_ParticleDiagnostic): if np.iterable(self.species): species_list = self.species else: - species_list = [species] + species_list = [self.species] if self.mangle_dict is None: # Only do this once so that the same variables are used in this distribution -- cgit v1.2.3