Skip to content

Commit

Permalink
LWFA: Python Steps as Int
Browse files Browse the repository at this point in the history
Expose TBG_steps properly as integers.
  • Loading branch information
ax3l committed Oct 26, 2017
1 parent 2b1507a commit 70e752f
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

from picongpu.input.parameters import LogScaledParameter, LinearScaledParameter

dt=1.39e-4
pico = 1.e-12
dt_r = 1. / 1.39e-16 * pico

PARAMETER_LIST = [
LogScaledParameter(
Expand All @@ -38,11 +39,12 @@

LinearScaledParameter(
name="Pulse_Length_SI", ptype="compile", unit="s",
default=5, slider_min=1, slider_max=150,
default=5.0, slider_min=1.0, slider_max=150.0,
slider_step=1, scale_factor=1.e-15),

LinearScaledParameter(
name="TBG_steps", ptype="run", unit="",
default=10000, slider_min=1000, slider_max=50000,
slider_step=1000, scale_factor=1.0),
name="TBG_steps", ptype="run", unit="s",
default=1.0, slider_min=0.1, slider_max=10.0,
slider_step=0.1, scale_factor=dt_r, dtype=int,
label="simulation time")
]

0 comments on commit 70e752f

Please sign in to comment.