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
5267b7f6
Commit
5267b7f6
authored
Apr 18, 2024
by
Yan Zhaojun
Browse files
debug
parent
9bdf6336
Pipeline
#4189
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_ifs_sim/support/cosmicrays.py
View file @
5267b7f6
...
@@ -358,8 +358,8 @@ class cosmicrays():
...
@@ -358,8 +358,8 @@ class cosmicrays():
area_cr
=
np
.
count_nonzero
(
self
.
cosmicrayMap
)
area_cr
=
np
.
count_nonzero
(
self
.
cosmicrayMap
)
covering
=
100.
*
area_cr
/
(
self
.
xsize
*
self
.
ysize
)
covering
=
100.
*
area_cr
/
(
self
.
xsize
*
self
.
ysize
)
text
=
'The cosmic ray covering factor is %i pixels i.e. %.3f per cent'
%
(
area_cr
,
covering
)
#
text = 'The cosmic ray covering factor is %i pixels i.e. %.3f per cent' % (area_cr, covering)
self
.
log
.
info
(
text
)
#
self.log.info(text)
# if verbose:
# if verbose:
# print( text)
# print( text)
...
...
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