Skip to content

Commit b0ebe3d

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xcoll/line_tools.py

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

0 commit comments

Comments
 (0)