Skip to content

Commit f3d4961

Browse files
committed
02_11_2025: fix line aligment
1 parent 990f38f commit f3d4961

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

model/library/line.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ def __init__(self,
108108
sequence:list[Element|Line],
109109
propagate:bool=False,
110110
dp:float=0.0, *,
111+
alignment:bool=True,
112+
dx:float=0.0,
113+
dy:float=0.0,
114+
dz:float=0.0,
115+
wx:float=0.0,
116+
wy:float=0.0,
117+
wz:float=0.0,
111118
exact:bool=False,
112119
output:bool=False,
113120
matrix:bool=False) -> None:
@@ -124,6 +131,20 @@ def __init__(self,
124131
flat to propagate flags to elements
125132
dp: float, default=0.0
126133
momentum deviation
134+
alignment: bool, default=True
135+
flag to use alignment errors
136+
dx: float, default=0.0
137+
dx alignment error
138+
dy: float, default=0.0
139+
dy alignment error
140+
dz: float, default=0.0
141+
dz alignment error
142+
wx: float, default=0.0
143+
wx alignment error
144+
wy: float, default=0.0
145+
wy alignment error
146+
wz: float, default=0.0
147+
wz alignment error
127148
exact: bool, default=False
128149
flag to include kinematic term
129150
output: bool, default=False
@@ -138,6 +159,13 @@ def __init__(self,
138159
"""
139160
super().__init__(name=name,
140161
dp=dp,
162+
alignment=alignment,
163+
dx=dx,
164+
dy=dy,
165+
dz=dz,
166+
wx=wx,
167+
wy=wy,
168+
wz=wz,
141169
exact=exact,
142170
output=output,
143171
matrix=matrix)

0 commit comments

Comments
 (0)