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
200976fe
Commit
200976fe
authored
Apr 11, 2024
by
zjyan
Browse files
update pep8 ifs_sim
parent
4617177b
Pipeline
#3978
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
200976fe
...
@@ -1887,8 +1887,7 @@ class IFSsimulator():
...
@@ -1887,8 +1887,7 @@ class IFSsimulator():
:rtype: ndarray
:rtype: ndarray
"""
"""
self
.
log
.
info
(
'Generating a flat field...'
)
self
.
log
.
info
(
'Generating a flat field...'
)
self
.
log
.
info
(
'The flat field has mean value of 1 and a given fluctuations,
self
.
log
.
info
(
'The flat field has mean value of 1 and a given fluctuations, usually either 1 or 2 percent defined by sigma= %d...'
%
sigma
)
usually either 1 or 2 percent defined by sigma= %d...'
%
sigma
)
np
.
random
.
seed
(
5
*
self
.
simnumber
)
np
.
random
.
seed
(
5
*
self
.
simnumber
)
self
.
flat_b
=
np
.
random
.
normal
(
loc
=
ave
,
scale
=
sigma
,
size
=
(
2048
,
4096
))
self
.
flat_b
=
np
.
random
.
normal
(
loc
=
ave
,
scale
=
sigma
,
size
=
(
2048
,
4096
))
...
...
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