Commit 8196e079 authored by Wei Chengliang's avatar Wei Chengliang
Browse files

update calibration in Chip.py

parent bbf88615
......@@ -508,6 +508,12 @@ class Chip(FocalPlane):
### seed=SeedBiasNonuni+self.chipID,
### logger=self.logger)
BiasCombImg = galsim.Image(self.npix_x, self.npix_y, init_value=0) ###
if config["ins_effects"]["add_bias"] == True:
biaslevel = self.bias_level
overscan = biaslevel-2
elif config["ins_effects"]["add_bias"] == False:
biaslevel = 0
overscan = 0
# Readout noise for Biases is not generated with random seeds. So readout noise for bias images can't be reproduced.
if config["ins_effects"]["cosmic_ray"] == True:
......
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