Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
47c7a760
Commit
47c7a760
authored
1 year ago
by
Wei Chengliang
Browse files
Options
Download
Email Patches
Plain Diff
bug fixes
parent
e5f6ac2d
release_v3.0
current_stable_for_tests
develop
master
milky_way_extinction
revert-914004c1
sim_scheduler
sls_psf_pca_convolve
v3.3.0
v3.2.1
v3.2.0
v3.1.0
v3.0.0
1 merge request
!22
add field distortion test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ObservationSim/Instrument/Chip/ChipUtils.py
+1
-1
ObservationSim/Instrument/Chip/ChipUtils.py
with
1 addition
and
1 deletion
+1
-1
ObservationSim/Instrument/Chip/ChipUtils.py
+
1
-
1
View file @
47c7a760
...
@@ -196,7 +196,7 @@ def add_poisson(img, chip, exptime=150., seed=0, sky_level=0., poisson_noise=Non
...
@@ -196,7 +196,7 @@ def add_poisson(img, chip, exptime=150., seed=0, sky_level=0., poisson_noise=Non
read_noise
=
chip
.
read_noise
read_noise
=
chip
.
read_noise
if
dark_noise
is
None
:
if
dark_noise
is
None
:
dark_noise
=
chip
.
dark_noise
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
=
InputDark
)
base_img
=
get_base_img
(
img
=
img
,
chip
=
chip
,
read_noise
=
read_noise
,
readout_time
=
chip
.
readout_time
,
dark_noise
=
dark_noise
,
exptime
=
exptime
,
InputDark
=
InputDark
)
img
+=
base_img
img
+=
base_img
img
.
addNoise
(
poisson_noise
)
img
.
addNoise
(
poisson_noise
)
# img -= read_noise**2
# img -= read_noise**2
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets