From 496065d0628bf1fc375b8d1308c67a179fd1e352 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 2 Jun 2023 13:47:17 -0700 Subject: [PATCH] LPA Channel: Move Periods (#373) * LPA Channel: Move Periods Move from long lattice to looped lattice. * Update examples/positron_channel/run_positron.py --------- Co-authored-by: Chad Mitchell <46825199+cemitch99@users.noreply.github.com> --- examples/positron_channel/run_positron.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/positron_channel/run_positron.py b/examples/positron_channel/run_positron.py index 4850b1b75..f0087a410 100755 --- a/examples/positron_channel/run_positron.py +++ b/examples/positron_channel/run_positron.py @@ -62,11 +62,10 @@ monitor, ] -num_periods = 250 +sim.lattice.extend(period) -lattice = period * num_periods - -sim.lattice.extend(lattice) +# number of periods through the lattice +sim.periods = 250 # run simulation sim.evolve()