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
de26bef0
Commit
de26bef0
authored
Nov 26, 2024
by
Wei Chengliang
Browse files
bug fixes: change galsim.drawImage method to no_pixel
parent
07f72bde
Pipeline
#7367
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
observation_sim/mock_objects/Galaxy.py
View file @
de26bef0
...
...
@@ -201,7 +201,7 @@ class Galaxy(MockObject):
# gal = self.bfrac * bulge + (1.0 - self.bfrac - kfrac) * disk + kfrac * knots
# stamp = gal.drawImage(wcs=chip_wcs_local, method='phot', offset=offset, save_photons=True)
stamp
=
gal
.
drawImage
(
wcs
=
chip_wcs_local
,
offset
=
offset
)
stamp
=
gal
.
drawImage
(
method
=
'no_pixel'
,
wcs
=
chip_wcs_local
,
offset
=
offset
)
if
np
.
sum
(
np
.
isnan
(
stamp
.
array
))
>
0
:
# ERROR happens
return
2
,
pos_shear
...
...
observation_sim/mock_objects/Stamp.py
View file @
de26bef0
...
...
@@ -92,7 +92,7 @@ class Stamp(MockObject):
else
:
gal
=
gal
+
gal_temp
stamp
=
gal
.
drawImage
(
wcs
=
chip_wcs_local
,
offset
=
offset
)
stamp
=
gal
.
drawImage
(
method
=
'no_pixel'
,
wcs
=
chip_wcs_local
,
offset
=
offset
)
if
np
.
sum
(
np
.
isnan
(
stamp
.
array
))
>
0
:
# ERROR happens
return
2
,
pos_shear
...
...
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