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
62c408f8
Commit
62c408f8
authored
Jan 08, 2025
by
Yan Zhaojun
Browse files
update
parent
1aa0db48
Pipeline
#7735
failed 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 @
62c408f8
...
...
@@ -356,7 +356,7 @@ class cosmicrays():
exposure time.
"""
def
__init__
(
self
,
log
,
image
,
exposuretime
,
crInfo
=
None
,
information
=
None
):
def
__init__
(
self
,
log
,
image
,
exposuretime
,
crInfo
=
None
,
information
=
None
):
"""
Cosmic ray generation class. Can either draw events from distributions or
set the energy of the events to a constant.
...
...
@@ -376,7 +376,7 @@ class cosmicrays():
# set up the information dictionary, first with defaults and then overwrite with inputs if given
self
.
information
=
(
dict
(
cosmicraylengths
=
'/home/yan/csst-master/data/cdf_cr_length.dat'
,
cosmicraydistance
=
'/home/yan/csst-master/data/cdf_cr_total.dat'
,
exptime
=
exposuretime
))
cosmicraydistance
=
'/home/yan/csst-master/data/cdf_cr_total.dat'
,
exptime
=
exposuretime
))
if
information
is
not
None
:
self
.
information
.
update
(
information
)
...
...
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