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_ifs_sim
Commits
9bdf6336
Commit
9bdf6336
authored
Apr 18, 2024
by
Yan Zhaojun
Browse files
debug
parent
f77c0647
Pipeline
#4185
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
9bdf6336
...
...
@@ -5519,10 +5519,15 @@ class IFSsimulator():
# if self.debug:
# exptimes=1
self
.
image_b_N
=
np
.
zeros
((
1344
,
9672
,
exptimes
))
self
.
image_r_N
=
np
.
zeros
((
1856
,
13768
,
exptimes
))
if
exptimes
>
1
:
self
.
image_b_N
=
np
.
zeros
((
1344
,
9672
,
exptimes
))
self
.
image_r_N
=
np
.
zeros
((
1856
,
13768
,
exptimes
))
else
:
self
.
image_b_N
=
np
.
zeros
((
1344
,
9672
))
self
.
image_r_N
=
np
.
zeros
((
1856
,
13768
))
for
idk
in
range
(
exptimes
):
...
...
@@ -5590,9 +5595,16 @@ class IFSsimulator():
print
(
'Applying cosmetics finished.......'
)
self
.
discretise
()
if
exptimes
>
1
:
self
.
image_b_N
[:,
:,
idk
]
=
self
.
image_b
[:,
:]
self
.
image_r_N
[:,
:,
idk
]
=
self
.
image_r
[:,
:]
self
.
image_b_N
[:,
:,
idk
]
=
self
.
image_b
[:,
:].
copy
()
self
.
image_r_N
[:,
:,
idk
]
=
self
.
image_r
[:,
:].
copy
()
else
:
self
.
image_b_N
[:,
:]
=
self
.
image_b
[:,
:].
copy
()
self
.
image_r_N
[:,
:]
=
self
.
image_r
[:,
:].
copy
()
self
.
writeOutputs
(
simnumber
)
...
...
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