File tree Expand file tree Collapse file tree 2 files changed +1944
-1966
lines changed
examples/lhc_native_loader_and_py_lattice Expand file tree Collapse file tree 2 files changed +1944
-1966
lines changed Original file line number Diff line number Diff line change 2323tt1 = env .lhcb1 .get_table ()
2424print (f'{ tt1 .rows ["mb.a8r1.b1" ].s = } ' )
2525
26-
27-
2826tt2 = env .lhcb2 .get_table ()
2927tw1 = env .lhcb1 .twiss4d ()
30- tw2 = env .lhcb2 .twiss4d (reverse = True )
31-
32- t1 = time .time ()
33- env2 = xt .load ('lhc_composers.json' )
34- t2 = time .time ()
35- print (f'Time to load LHC from json: { t2 - t1 :.3f} s' )
36-
37- env2 .lhcb1 .particle_ref = xt .Particles (p0c = 0.45e12 )
38- env2 .lhcb2 .particle_ref = xt .Particles (p0c = 0.45e12 )
39-
40- tt1_ref = env2 .lhcb1 .get_table ()
41- tt2_ref = env2 .lhcb2 .get_table ()
42- tw1_ref = env2 .lhcb1 .twiss4d ()
43- tw2_ref = env2 .lhcb2 .twiss4d (reverse = True )
44-
45- tt1_nodr = tt1 .rows [tt1 .element_type != 'Drift' ]
46- tt1_ref_nodr = tt1_ref .rows [tt1_ref .element_type != 'Drift' ]
47-
48- for ii , cc in enumerate (env .lhcb1 .composer .components ):
49- if cc .name == 'mb.a8r1.b1' :
50- break
28+ tw2 = env .lhcb2 .twiss4d (reverse = True )
You can’t perform that action at this time.
0 commit comments