Skip to content

Commit dd42dc2

Browse files
Changed API of beam element transformations active
1 parent d224faa commit dd42dc2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xcoll/line_tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,7 @@ def get_aperture(self, name, *, s_start, s_end, aperture=None, table=None, s_tol
337337
aper_mid = self.get_apertures_at_s(s=(s_start+s_end)/2, table=table, s_tol=s_tol)
338338
if aper_mid is None:
339339
raise ValueError(f"No aperture found for {name}! Please provide one.")
340-
if self.line[aper_mid].allow_rot_and_shift \
341-
and xt.base_element._tranformations_active(self.line[aper_mid]):
340+
if self.line[aper_mid].transformations_active:
342341
print(f"Warning: Using the centre aperture for {name}, but "
343342
+ f"transformations are present. Proceed with caution.")
344343
aper1 = aper_mid

0 commit comments

Comments
 (0)