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_cpic_sim
Commits
83f3de50
Commit
83f3de50
authored
May 22, 2025
by
GZhao
Browse files
debug io target keyword preceision
parent
5ee85e61
Pipeline
#8374
passed with stage
in 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_cpic_sim/io.py
View file @
83f3de50
...
...
@@ -300,7 +300,7 @@ def primary_hdu(
radec
=
SkyCoord
(
cstar
[
'ra'
],
cstar
[
'dec'
])
ra_str
=
radec
.
ra
.
to_string
(
unit
=
u
.
hour
,
sep
=
''
,
precision
=
1
,
pad
=
True
)
dec_str
=
radec
.
dec
.
to_string
(
unit
=
u
.
deg
,
sep
=
''
,
alwayssign
=
True
,
pad
=
True
)
dec_str
=
radec
.
dec
.
to_string
(
unit
=
u
.
deg
,
sep
=
''
,
precision
=
0
,
alwayssign
=
True
,
pad
=
True
)
target_name
=
ra_str
+
dec_str
header
[
'OBJECT'
]
=
cstar
.
get
(
'name'
,
target_name
)
...
...
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