Skip to content

Commit c1011df

Browse files
committed
This works
1 parent b8f6d21 commit c1011df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xfields/config_tools/electroncloud_config_tools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ def full_electroncloud_setup(line=None, ecloud_info=None, filenames=None, contex
171171
zeta_max=None, subtract_dipolar_kicks=True, shift_to_closed_orbit=True,
172172
steps_r_matrix=None):
173173

174-
buffer = context.new_buffer()
174+
line.build_tracker(compile=False) # To move all elements to the same buffer
175+
buffer = line._buffer
176+
line.discard_tracker()
175177
fieldmaps = {
176178
ecloud_type: get_electroncloud_fieldmap_from_h5(
177179
filename=filename,

0 commit comments

Comments
 (0)