diff --git a/astra/astra_distgen.py b/astra/astra_distgen.py index 5e902d7..5984c1d 100644 --- a/astra/astra_distgen.py +++ b/astra/astra_distgen.py @@ -134,7 +134,7 @@ def run_astra_with_distgen(settings=None, P = G.particles # Special flag for cathode start if G['start:type'] == 'cathode': - P.status[:] -1 + P.status[:] = -1 # Attach to Astra object A.initial_particles = P