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
20c5ee5f
Commit
20c5ee5f
authored
Oct 26, 2024
by
Wei Chengliang
Browse files
update codestyle-PEP8
parent
00508e40
Pipeline
#7097
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
observation_sim/instruments/chip/libCTI/CTI_modeling.py
View file @
20c5ee5f
observation_sim/psf/PSFGauss.py
View file @
20c5ee5f
...
@@ -50,7 +50,7 @@ class PSFGauss(PSFModel):
...
@@ -50,7 +50,7 @@ class PSFGauss(PSFModel):
Return: the flux ratio
Return: the flux ratio
"""
"""
if
pscale
==
None
:
if
pscale
is
None
:
pscale
=
self
.
pix_size
pscale
=
self
.
pix_size
gaussx
=
galsim
.
Gaussian
(
flux
=
1.0
,
sigma
=
sig
)
gaussx
=
galsim
.
Gaussian
(
flux
=
1.0
,
sigma
=
sig
)
gaussImg
=
gaussx
.
drawImage
(
scale
=
pscale
,
method
=
'no_pixel'
)
gaussImg
=
gaussx
.
drawImage
(
scale
=
pscale
,
method
=
'no_pixel'
)
...
@@ -68,7 +68,7 @@ class PSFGauss(PSFModel):
...
@@ -68,7 +68,7 @@ class PSFGauss(PSFModel):
return the fwhm in arcsec
return the fwhm in arcsec
"""
"""
if
pscale
==
None
:
if
pscale
is
None
:
pscale
=
self
.
pix_size
pscale
=
self
.
pix_size
err
=
1.0e-3
err
=
1.0e-3
nxx
=
100
nxx
=
100
...
@@ -123,3 +123,4 @@ class PSFGauss(PSFModel):
...
@@ -123,3 +123,4 @@ class PSFGauss(PSFModel):
# return ell, beta, qr
# return ell, beta, qr
PSFshear
=
galsim
.
Shear
(
e
=
ell
,
beta
=
beta
*
galsim
.
radians
)
PSFshear
=
galsim
.
Shear
(
e
=
ell
,
beta
=
beta
*
galsim
.
radians
)
return
self
.
psf
.
shear
(
PSFshear
),
PSFshear
return
self
.
psf
.
shear
(
PSFshear
),
PSFshear
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