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
e1d1ebda
Commit
e1d1ebda
authored
Apr 08, 2022
by
Fang Yuedong
Browse files
fix bug with cat_out_only option
parent
b0fc6421
Changes
1
Show whitespace changes
Inline
Side-by-side
ObservationSim/ObservationSim.py
View file @
e1d1ebda
...
...
@@ -239,6 +239,7 @@ class Observation(object):
try
:
if
self
.
config
[
"run_option"
][
"out_cat_only"
]:
isUpdated
=
True
pos_shear
=
0.
elif
chip
.
survey_type
==
"photometric"
and
not
self
.
config
[
"run_option"
][
"out_cat_only"
]:
isUpdated
,
pos_shear
=
obj
.
drawObj_multiband
(
tel
=
self
.
tel
,
...
...
@@ -289,6 +290,8 @@ class Observation(object):
# Detector Effects
# ===========================================================
# whether to output zero, dark, flat calibration images.
if
not
self
.
config
[
"run_option"
][
"out_cat_only"
]:
chip
.
img
=
chip
.
addEffects
(
config
=
self
.
config
,
img
=
chip
.
img
,
...
...
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