Skip to content

Commit c083a10

Browse files
Merge pull request #20 from thompsonte-4o2/main
Fixing BTF aperture nodes.
2 parents 631aec9 + 0675fd4 commit c083a10

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

virtaccl/site/BTF/btf_virtual_accelerator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from pathlib import Path
1010
from importlib.metadata import version
1111

12-
from orbit.py_linac.lattice_modifications import Add_quad_apertures_to_lattice, Add_rfgap_apertures_to_lattice
12+
from orbit.py_linac.lattice_modifications import Add_quad_apertures_to_lattice, Add_bend_apertures_to_lattice, Add_drift_apertures_to_lattice
1313

1414
from virtaccl.PyORBIT_Model.pyorbit_va_nodes import BPMclass, FCclass, BCMclass
1515
from virtaccl.PyORBIT_Model.pyorbit_virtual_accelerator import add_pyorbit_arguments, PyorbitVirtualAcceleratorBuilder
@@ -109,7 +109,8 @@ def build_btf(**kwargs):
109109
for rf_gap in rf_gaps:
110110
rf_gap.setCppGapModel(cppGapModel())
111111
Add_quad_apertures_to_lattice(model_lattice)
112-
Add_rfgap_apertures_to_lattice(model_lattice)
112+
Add_bend_apertures_to_lattice(model_lattice, step=0.1)
113+
Add_drift_apertures_to_lattice(model_lattice, pos_start=0.0, pos_end=model_lattice.getLength(), step=0.1, aperture_d=0.04)
113114

114115
bunch_file = Path(kwargs['bunch'])
115116
part_num = kwargs['particle_number']

0 commit comments

Comments
 (0)