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
Liu Dezi
csst_msc_sim
Commits
b3048b0d
Commit
b3048b0d
authored
Apr 15, 2024
by
Zhang Xin
Browse files
fix bug: led flat status for sls
parent
5d5ddd71
Changes
2
Show whitespace changes
Inline
Side-by-side
ObservationSim/Config/Header/ImageHeader.py
View file @
b3048b0d
...
...
@@ -419,7 +419,7 @@ def generatePrimaryHeader(xlen = 9216, ylen = 9232, pointing_id = '00000001', po
ra_hms
=
format
(
co
.
ra
.
hms
.
h
,
'02.0f'
)
+
format
(
co
.
ra
.
hms
.
m
,
'02.0f'
)
+
format
(
co
.
ra
.
hms
.
s
,
'02.1f'
)
dec_hms
=
format
(
co
.
dec
.
dms
.
d
,
'02.0f'
)
+
format
(
abs
(
co
.
dec
.
dms
.
m
),
'02.0f'
)
+
format
(
abs
(
co
.
dec
.
dms
.
s
),
'02.0f'
)
if
dec
>
0
:
if
dec
>
=
0
:
h_prim
[
'TARGET'
]
=
ra_hms
+
'+'
+
dec_hms
else
:
h_prim
[
'TARGET'
]
=
ra_hms
+
dec_hms
...
...
ObservationSim/MockObject/FlatLED.py
View file @
b3048b0d
...
...
@@ -141,6 +141,12 @@ class FlatLED(object):
return
np
.
ones
([
self
.
chip
.
npix_y
,
self
.
chip
.
npix_x
])
ledFlat
=
np
.
zeros
([
self
.
chip
.
npix_y
,
self
.
chip
.
npix_x
])
ledStat
=
'00000000000000'
ledTimes
=
[
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
,
0.0
]
nledStat
=
'2'
for
i
in
np
.
arange
(
len
(
led_type_list
)):
led_type
=
led_type_list
[
i
]
exp_t
=
exp_t_list
[
i
]
...
...
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