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
csst-sims
csst_msc_sim
Commits
e5f6ac2d
Commit
e5f6ac2d
authored
Apr 11, 2024
by
Wei Chengliang
Browse files
debug
parent
e95f8ce1
Changes
1
Hide whitespace changes
Inline
Side-by-side
ObservationSim/Instrument/Chip/ChipUtils.py
View file @
e5f6ac2d
...
...
@@ -196,7 +196,7 @@ def add_poisson(img, chip, exptime=150., seed=0, sky_level=0., poisson_noise=Non
read_noise
=
chip
.
read_noise
if
dark_noise
is
None
:
dark_noise
=
chip
.
dark_noise
base_img
=
get_base_img
(
img
=
img
,
chip
,
read_noise
=
read_noise
,
readout_time
=
chip
.
readout_time
,
dark_noise
=
dark_noise
,
exptime
=
exptime
,
InputDark
=
None
)
base_img
=
get_base_img
(
img
=
img
,
chip
,
read_noise
=
read_noise
,
readout_time
=
chip
.
readout_time
,
dark_noise
=
dark_noise
,
exptime
=
exptime
,
InputDark
=
InputDark
)
img
+=
base_img
img
.
addNoise
(
poisson_noise
)
# img -= read_noise**2
...
...
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