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
f3abcf15
Commit
f3abcf15
authored
Apr 10, 2024
by
Yan Zhaojun
Browse files
update setup.py
parent
49555558
Pipeline
#3966
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
f3abcf15
...
@@ -1264,8 +1264,9 @@ class IFSsimulator():
...
@@ -1264,8 +1264,9 @@ class IFSsimulator():
Stores the information to a dictionary called cr.
Stores the information to a dictionary called cr.
"""
"""
self
.
log
.
info
(
'Reading in cosmic ray information from %s and %s'
%
(
self
.
information
[
'cosmicraylengths'
],
# self.log.info('Reading in cosmic ray information from %s and %s' % (self.information['cosmicraylengths'],
self
.
information
[
'cosmicraydistance'
]))
# self.information['cosmicraydistance']))
crLengths
=
np
.
loadtxt
(
crLengths
=
np
.
loadtxt
(
self
.
information
[
'dir_path'
]
+
self
.
information
[
'cosmicraylengths'
])
self
.
information
[
'dir_path'
]
+
self
.
information
[
'cosmicraylengths'
])
crDists
=
np
.
loadtxt
(
crDists
=
np
.
loadtxt
(
...
@@ -1396,7 +1397,7 @@ class IFSsimulator():
...
@@ -1396,7 +1397,7 @@ class IFSsimulator():
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim/'
)
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim/'
)
print
(
dir_path
)
print
(
dir_path
)
self
.
result_path
=
dir_path
+
'/ifs_sim_result/'
+
result_day
self
.
result_path
=
dir_path
+
'/ifs_sim_result/'
+
self
.
source
+
ss
+
result_day
if
os
.
path
.
isdir
(
self
.
result_path
)
==
False
:
if
os
.
path
.
isdir
(
self
.
result_path
)
==
False
:
os
.
mkdir
(
self
.
result_path
)
os
.
mkdir
(
self
.
result_path
)
...
...
ifs_data/IFS_sim_C90.config
View file @
f3abcf15
...
@@ -93,17 +93,17 @@ exposuretimes=3
...
@@ -93,17 +93,17 @@ exposuretimes=3
rdose
=
8
.
0
e9
rdose
=
8
.
0
e9
#charge trap information file
#charge trap information file
parallelTrapfile
=
/
IFS_inputdata
/
cdm_euclid_parallel
.
dat
parallelTrapfile
=
IFS_inputdata
/
cdm_euclid_parallel
.
dat
serialTrapfile
=
/
IFS_inputdata
/
cdm_euclid_serial
.
dat
serialTrapfile
=
IFS_inputdata
/
cdm_euclid_serial
.
dat
#cosmetic defects input file
#cosmetic defects input file
cosmeticsFile_b
=
/
IFS_inputdata
/
Cosmetics_b
.
txt
cosmeticsFile_b
=
IFS_inputdata
/
Cosmetics_b
.
txt
cosmeticsFile_r
=
/
IFS_inputdata
/
Cosmetics_r
.
txt
cosmeticsFile_r
=
IFS_inputdata
/
Cosmetics_r
.
txt
###comicray information file
###comicray information file
cosmicraylengths
=
IFS_inputdata
/
cdf_cr_length
.
dat
cosmicraylengths
=
IFS_inputdata
/
cdf_cr_length
.
dat
cosmicraydistance
=
IFS_inputdata
/
cdf_cr_total
.
dat
cosmicraydistance
=
IFS_inputdata
/
cdf_cr_total
.
dat
#apply multiplicative flatfield (to emulate pixel-to-pixel non-uniformity)?
#apply multiplicative flatfield (to emulate pixel-to-pixel non-uniformity)?
...
...
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