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-cicd
csst-dag
Commits
07d47948
Commit
07d47948
authored
Dec 16, 2024
by
BO ZHANG
🏀
Browse files
add v096 trigger.py
parent
baa27661
Changes
1
Hide whitespace changes
Inline
Side-by-side
batch/msc_096/trigger.py
0 → 100644
View file @
07d47948
"""
COSMOS
"""
from
csst_dag
import
get_redis
,
gen_level1_dag_message
from
csst_dag.msc
import
MBI_CHIPID
,
SLS_CHIPID
import
numpy
as
np
r
=
get_redis
(
location
=
"naoc"
)
obsid_list
=
np
.
loadtxt
(
"batch/msc_096/obsid.txt"
,
dtype
=
str
)
for
obsid
in
obsid_list
:
for
chipid
in
MBI_CHIPID
:
msg
=
gen_level1_dag_message
(
obsid
=
obsid
,
chipid
=
chipid
)
print
(
msg
)
r
.
push
(
msg
)
break
r
.
get_all
()
# cd /nfsdata/share/simulation-collection/csst-dag
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