From 6dcd85dd5a1adefc90fc186bba5768727b842a6d Mon Sep 17 00:00:00 2001 From: Dave Grote Date: Mon, 26 Jun 2017 14:20:04 -0700 Subject: Updated to be compliant with PICMI Python standard --- Python/pywarpx/Particles.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Python/pywarpx/Particles.py') diff --git a/Python/pywarpx/Particles.py b/Python/pywarpx/Particles.py index bc3feef9c..e7bac7e10 100644 --- a/Python/pywarpx/Particles.py +++ b/Python/pywarpx/Particles.py @@ -1,6 +1,7 @@ from .Bucket import Bucket particles = Bucket('particles', nspecies=0, species_names='') +particles_list = [] electrons = Bucket('electrons') electrons.charge = "-q_e" @@ -16,3 +17,8 @@ protons = Bucket('protons') protons.charge = "q_e" protons.mass = "m_p" protons.injection_style = "python" + +particle_dict = {'electrons':electrons, + 'positrons':positrons, + 'protons':protons + } -- cgit v1.2.3