You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sealrtc/optics/align.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,8 @@ def applytiptilt(amptip,amptilt,bestflat=bestflat): #amp is the P2V in DM units
54
54
cenmaskradmax, cenmaskradmin=49, 10#mask radii for central lobe, ignoring central part where the pinhole PSF is (if not ignored, this would bias the alignment algorithm)
55
55
cenmaskind=np.where(
56
56
np.logical_and(
57
-
cenmaskrho<cenmaskradmax,cenmaskrho>cenmaskradmin
57
+
cenmaskrho<cenmaskradmax,
58
+
cenmaskrho>cenmaskradmin
58
59
)
59
60
)
60
61
cenmask[cenmaskind] =1
@@ -73,7 +74,7 @@ def applytiptilt(amptip,amptilt,bestflat=bestflat): #amp is the P2V in DM units
ttoptarr[i,j]=sidefraction+0.1/cenfraction#the factor of 0.01 is a relative weight; because we only expect the fringe visibility to max out at a few %, this attempts to give equal weight to both terms
75
76
76
-
medttoptarr=median_filter(ttoptarr, 3) #smooth out hot pizels, attenuating noise issues
77
+
medttoptarr=median_filter(ttoptarr, 3) #smooth out hot pixels, attenuating noise issues
77
78
indopttip, indopttilt=np.where(
78
79
medttoptarr==np.max(medttoptarr)
79
80
)
@@ -94,7 +95,7 @@ def applytiptilt(amptip,amptilt,bestflat=bestflat): #amp is the P2V in DM units
0 commit comments