Skip to content

Commit bbdaefa

Browse files
committed
This passes the test
1 parent ac4bfb4 commit bbdaefa

File tree

4 files changed

+1529
-1520
lines changed

4 files changed

+1529
-1520
lines changed

examples/lhc_native_loader_and_py_lattice/001_generate_py_lattice_file.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@
1515

1616
env = xt.load(string=seq_text, format='madx', reverse_lines=['lhcb2'])
1717

18+
# Force k0_from_h to False (they are all provided)
19+
for nn in list(env.elements.keys()):
20+
if hasattr(env.elements[nn], 'k0_from_h'):
21+
env.elements[nn].k0_from_h = False
22+
1823
lpg.write_py_lattice_file(env, output_fname='lhc_seq.py')

0 commit comments

Comments
 (0)