Skip to content

Commit e59a994

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 93153d4 commit e59a994

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

examples/edge_effects/run_dipedge.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@
8888
name="dipedge0", psi=edge_angle, rc=10.0, g=1.0e-3, model="linear", location="entry"
8989
)
9090
dipedge1 = elements.DipEdge(
91-
name="dipedge1", psi=edge_angle, rc=10.0, g=1.0e-3, model="nonlinear", location="entry"
91+
name="dipedge1",
92+
psi=edge_angle,
93+
rc=10.0,
94+
g=1.0e-3,
95+
model="nonlinear",
96+
location="entry",
9297
)
9398

9499
line = [

src/python/elements.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ void init_elements(py::module& m)
870870

871871
if (model != "linear" && model != "nonlinear")
872872
throw std::runtime_error(R"(model must be "linear" or "nonlinear")");
873-
873+
874874
DipEdge::Model const model_fl = model == "linear" ?
875875
DipEdge::Model::linear :
876876
DipEdge::Model::nonlinear;

0 commit comments

Comments
 (0)