Commit da9c9fbe authored by Fang Yuedong's avatar Fang Yuedong
Browse files

fix a bug (crashing when set output_flat to True and add_bias equal to False) in Chip.py

parent d5839380
......@@ -580,7 +580,7 @@ class Chip(FocalPlane):
if config["ins_effects"]["add_bias"] == True:
biaslevel = self.bias_level
overscan = biaslevel-2
elif config["ins_effects"]["add_bias"] == True:
elif config["ins_effects"]["add_bias"] == False:
biaslevel = 0
overscan = 0
darklevel = self.dark_noise*(self.flat_exptime+0.5*self.readout_time)
......
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