Skip to content

Commit

Permalink
Another adaptation
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Apr 10, 2024
1 parent 3308575 commit c7769ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpart/build_particles.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def build_particles(_context=None, _buffer=None, _offset=None, _capacity=None,
assert at_element == expected_at_element or (
at_element < expected_at_element and
all([xt._is_aperture(line.element_dict[nn], line)
or xt._behaves_like_drift(line.element_dict[nn])
or xt._behaves_like_drift(line.element_dict[nn], line)
for nn in line.element_names[at_element:expected_at_element]])), (
"`match_at_s` can only be placed in the drifts downstream of the "
"specified `at_element`. No active element can be present in between."
Expand Down

0 comments on commit c7769ed

Please sign in to comment.