Skip to content

Commit 440f472

Browse files
committed
Cleanup
1 parent 2dd071a commit 440f472

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

python_examples/run3_collisions_python/000_pymask.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
print('Leveling not working in this mode!')
195195
else:
196196
if particle_type == 'ion': # the legacy macro for BB have been checked but not maintained
197-
raise ValueError
197+
raise ValueError
198198
# Luminosity levelling
199199
vars_for_legacy_level = ['lumi_ip8',
200200
'nco_IP1', 'nco_IP2', 'nco_IP5', 'nco_IP8']
@@ -523,16 +523,15 @@
523523
with open('./optics_orbit_at_start_ring_from_madx.json', 'w') as fid:
524524
json.dump(optics_and_co_at_start_ring_from_madx, fid, cls=pm.JEncoder)
525525

526-
##################
527-
# Generate xline #
528-
##################
529-
526+
########################
527+
# Generate xtrack line #
528+
########################
530529
if enable_bb_legacy:
531-
print('xline is not generated with bb legacy macros')
530+
print('xtrack line is not generated with bb legacy macros')
532531
else:
533-
pm.generate_xline(mad_track, sequence_to_track, bb_df_track,
532+
pm.generate_xsuite_line(mad_track, sequence_to_track, bb_df_track,
534533
optics_and_co_at_start_ring_from_madx,
535-
folder_name = './xlines',
534+
folder_name = './xsuite_lines',
536535
skip_mad_use=True,
537536
prepare_line_for_xtrack=True)
538537

0 commit comments

Comments
 (0)