Skip to content

Commit

Permalink
Fix issue with kernel prebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Sep 28, 2024
1 parent 1355ff8 commit 3e7ffdf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xtrack/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ def __init__(
_context=_context,
_buffer=_buffer,
_no_resolve_parents=_prebuilding_kernels)
tracker_data_base._line_table = line.get_table()
tracker_data_base._element_names_unique = tuple(
tracker_data_base._line_table.name[:-1]) # remove _endpoint
if not _prebuilding_kernels:
tracker_data_base._line_table = line.get_table()
tracker_data_base._element_names_unique = tuple(
tracker_data_base._line_table.name[:-1]) # remove _endpoint
line._freeze()

if np.any([hasattr(ee, 'needs_rng') and ee.needs_rng for ee in line.elements]):
Expand Down

0 comments on commit 3e7ffdf

Please sign in to comment.