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_msc_sim
Commits
4f8ea7d1
Commit
4f8ea7d1
authored
Jun 17, 2024
by
Zhang Xin
Browse files
fix issue43:FILENAME keywords cut by len 80
parent
e1a6d241
Pipeline
#5541
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
observation_sim/sim_steps/readout_output.py
View file @
4f8ea7d1
...
...
@@ -86,10 +86,10 @@ def quantization_and_output(self, chip, filt, tel, pointing, catalog, obs_param)
fname
=
os
.
path
.
join
(
self
.
chip_output
.
subdir
,
self
.
h_prim
[
'FILENAME'
]
+
'.fits'
)
f_name_size
=
68
if
(
len
(
self
.
h_prim
[
'FILENAME'
])
>
f_name_size
):
self
.
updateHeaderInfo
(
header_flag
=
'prim'
,
keys
=
[
'FILENAME'
],
values
=
[
self
.
h_prim
[
'FILENAME'
][
0
:
f_name_size
]])
#
f_name_size = 68
#
if (len(self.h_prim['FILENAME']) > f_name_size):
#
self.updateHeaderInfo(header_flag='prim', keys=['FILENAME'], values=[
#
self.h_prim['FILENAME'][0:f_name_size]])
hdu1
=
fits
.
PrimaryHDU
(
header
=
self
.
h_prim
)
...
...
Zhang Xin
@zhangxin
mentioned in issue
#43 (closed)
·
Jun 17, 2024
mentioned in issue
#43 (closed)
mentioned in issue #43
Toggle commit list
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