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
a3c0a5b8
Commit
a3c0a5b8
authored
Apr 10, 2024
by
Yan Zhaojun
Browse files
update setup.py
parent
27ac668d
Pipeline
#3969
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
a3c0a5b8
...
@@ -1267,7 +1267,7 @@ class IFSsimulator():
...
@@ -1267,7 +1267,7 @@ class IFSsimulator():
# 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']))
print
(
self
.
information
)
print
(
self
.
information
)
print
(
self
.
dir_path
)
crLengths
=
np
.
loadtxt
(
crLengths
=
np
.
loadtxt
(
self
.
information
[
'dir_path'
]
+
self
.
information
[
'cosmicraylengths'
])
self
.
information
[
'dir_path'
]
+
self
.
information
[
'cosmicraylengths'
])
...
@@ -1396,10 +1396,7 @@ class IFSsimulator():
...
@@ -1396,10 +1396,7 @@ class IFSsimulator():
# else:
# else:
# self.result_path='/data/ifspip/CCD_ima/IFS_simData_'+self.source+ss+result_day
# self.result_path='/data/ifspip/CCD_ima/IFS_simData_'+self.source+ss+result_day
dir_path
=
os
.
path
.
join
(
os
.
environ
[
'UNIT_TEST_DATA_ROOT'
],
'ifs_sim/'
)
self
.
result_path
=
self
.
information
[
'dir_path'
]
+
'ifs_sim_result/'
+
self
.
source
+
ss
+
result_day
print
(
dir_path
)
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
)
...
@@ -4730,7 +4727,7 @@ class IFSsimulator():
...
@@ -4730,7 +4727,7 @@ class IFSsimulator():
hdu2
=
fits
.
ImageHDU
(
Wave
)
hdu2
=
fits
.
ImageHDU
(
Wave
)
hdu2
.
header
.
append
((
'WaveUnit'
,
'nm'
))
hdu2
.
header
.
append
((
'WaveUnit'
,
'nm'
))
newd
=
fits
.
HDUList
([
hdu1
,
hdu2
])
newd
=
fits
.
HDUList
([
hdu1
,
hdu2
])
...
...
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