Skip to content

Commit

Permalink
exclude the last order
Browse files Browse the repository at this point in the history
  • Loading branch information
hypergravity committed Jan 17, 2021
1 parent f010aa7 commit bf9daec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion E9G10/bfosc_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,13 @@ def read_star(fp_star):
if np.any(np.abs(intersect[i] - intersect[i + 1:]) < 5):
ind_valid_ap[i] = False
ap_interp = ap_illusion[ind_valid_ap]
ap_interp = ap_interp[ap_interp[:, -1] < 1070]
try:
assert ap_interp.shape[0] == 12
except:
print("invalid number of apertures, please check images")
print("invalid number of apertures, please check images!")
print("ap_interp", ap_interp.shape)
print("Note that the FEAT template has 11 orders!")
ap_interp = ap_interp[1:]
print(" |- final aperture shape", ap_interp.shape)

Expand Down

0 comments on commit bf9daec

Please sign in to comment.