Skip to content

Commit 60ba68f

Browse files
Revert "Remove an unused internal method"
This reverts commit 3df4667.
1 parent ad3efac commit 60ba68f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

xtrack/base_element.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,13 @@ def _generate_per_particle_kernel_from_local_particle_function(
217217
return source
218218

219219

220+
def _tranformations_active(beam_element):
221+
"""This internal function is provided for backward compatibility but
222+
should not be used and will beb removed soon. Use the following instead:"""
223+
return beam_element.transformations_active
224+
225+
226+
220227
class MetaBeamElement(xo.MetaHybridClass):
221228

222229
def __new__(cls, name, bases, data):

0 commit comments

Comments
 (0)