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
Liu Dezi
csst_msc_sim
Commits
fb815ffb
Commit
fb815ffb
authored
1 year ago
by
Zhang Xin
Browse files
Options
Download
Email Patches
Plain Diff
fix led model bug
parent
98579c7c
sim_scheduler
current_stable_for_tests
develop
liudezi-develop-patch-58263
master
internal_test_20240425
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ObservationSim/sim_steps/__init__.py
+1
-0
ObservationSim/sim_steps/__init__.py
ObservationSim/sim_steps/add_LED_flat.py
+1
-0
ObservationSim/sim_steps/add_LED_flat.py
ObservationSim/sim_steps/add_sky_background.py
+1
-0
ObservationSim/sim_steps/add_sky_background.py
with
3 additions
and
0 deletions
+3
-0
ObservationSim/sim_steps/__init__.py
+
1
-
0
View file @
fb815ffb
...
...
@@ -13,6 +13,7 @@ class SimSteps:
from
.add_pattern_noise
import
apply_PRNU
,
add_poisson_and_dark
,
add_detector_defects
,
add_nonlinearity
,
add_blooming
,
add_bias
from
.add_brighter_fatter_CTE
import
add_brighter_fatter
,
apply_CTE
from
.readout_output
import
add_prescan_overscan
,
add_readout_noise
,
apply_gain
,
quantization_and_output
from
.add_LED_flat
import
add_LED_Flat
SIM_STEP_TYPES
=
{
"scie_obs"
:
"add_objects"
,
...
...
This diff is collapsed.
Click to expand it.
ObservationSim/sim_steps/add_LED_flat.py
+
1
-
0
View file @
fb815ffb
import
numpy
as
np
from
ObservationSim.MockObject
import
FlatLED
import
galsim
def
add_LED_Flat
(
self
,
chip
,
filt
,
tel
,
pointing
,
catalog
,
obs_param
):
...
...
This diff is collapsed.
Click to expand it.
ObservationSim/sim_steps/add_sky_background.py
+
1
-
0
View file @
fb815ffb
import
numpy
as
np
import
galsim
from
ObservationSim.Straylight
import
calculateSkyMap_split_g
from
ObservationSim.Instrument
import
FilterParam
def
add_sky_background_sci
(
self
,
chip
,
filt
,
tel
,
pointing
,
catalog
,
obs_param
):
flat_normal
=
np
.
ones_like
(
chip
.
img
.
array
)
...
...
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