Commit e6411518 authored by Wei Chengliang's avatar Wei Chengliang
Browse files

bug fixes

parent 47c7a760
......@@ -13,7 +13,7 @@ def add_prescan_overscan(self, chip, filt, tel, pointing, catalog, obs_param):
over1=chip.overscan_x,
over2=chip.overscan_y)
if obs_param["add_dark"] == True:
if obs_param["poisson_and_dark"]["add_dark"] == True:
ny = int(chip.npix_y/2)
base_dark = (ny-1)*(chip.readout_time/ny)*chip.dark_noise
chip.img.array[(chip.prescan_y+ny):-(chip.prescan_y+ny),:] = bese_dark
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment