Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Liu Dezi
csst_msc_sim
Commits
da9c9fbe
Commit
da9c9fbe
authored
Jun 30, 2022
by
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
Changes
1
Show whitespace changes
Inline
Side-by-side
ObservationSim/Instrument/Chip/Chip.py
View file @
da9c9fbe
...
@@ -580,7 +580,7 @@ class Chip(FocalPlane):
...
@@ -580,7 +580,7 @@ class Chip(FocalPlane):
if
config
[
"ins_effects"
][
"add_bias"
]
==
True
:
if
config
[
"ins_effects"
][
"add_bias"
]
==
True
:
biaslevel
=
self
.
bias_level
biaslevel
=
self
.
bias_level
overscan
=
biaslevel
-
2
overscan
=
biaslevel
-
2
elif
config
[
"ins_effects"
][
"add_bias"
]
==
Tru
e
:
elif
config
[
"ins_effects"
][
"add_bias"
]
==
Fals
e
:
biaslevel
=
0
biaslevel
=
0
overscan
=
0
overscan
=
0
darklevel
=
self
.
dark_noise
*
(
self
.
flat_exptime
+
0.5
*
self
.
readout_time
)
darklevel
=
self
.
dark_noise
*
(
self
.
flat_exptime
+
0.5
*
self
.
readout_time
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment