Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 2, 2024
1 parent 34b73de commit 8cfe4c8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,12 @@ def assert_order(*test_params):
(xt.SimpleThinQuadrupole(knl=[0, 1]), 1, 1),
)


def test_repeated_elements_survey():

# https://github.com/xsuite/xplt/issues/31
line = xt.Line(
elements = {"obm": xt.Bend(length=0.5)},
element_names= ["obm","obm"]
)
#line.replace_all_repeated_elements()
line = xt.Line(elements={"obm": xt.Bend(length=0.5)}, element_names=["obm", "obm"])
# line.replace_all_repeated_elements()
print(line.survey())

plot = xplt.FloorPlot(line=line)
Expand Down

0 comments on commit 8cfe4c8

Please sign in to comment.