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
b2abedfc
Commit
b2abedfc
authored
Jun 14, 2025
by
BO ZHANG
🏀
Browse files
tweaks
parent
efd06101
Changes
2
Show whitespace changes
Inline
Side-by-side
csst_dag/cli/msc.py
View file @
b2abedfc
...
@@ -62,7 +62,7 @@ if args.obs_type:
...
@@ -62,7 +62,7 @@ if args.obs_type:
DAG_MAP
=
{
args
.
obs_type
:
DAG_MAP
[
args
.
obs_type
]}
DAG_MAP
=
{
args
.
obs_type
:
DAG_MAP
[
args
.
obs_type
]}
for
obs_type
,
dags
in
DAG_MAP
.
items
():
for
obs_type
,
dags
in
DAG_MAP
.
items
():
print
(
f
"* Processing
{
obs_type
}
"
)
print
(
f
"* Processing
`
{
obs_type
}
`
"
)
for
this_dag
in
dags
:
for
this_dag
in
dags
:
print
(
f
" - Scheduling `
{
this_dag
}
` -> "
,
end
=
""
)
print
(
f
" - Scheduling `
{
this_dag
}
` -> "
,
end
=
""
)
dag
=
CsstDAGs
().
get
(
this_dag
)
dag
=
CsstDAGs
().
get
(
this_dag
)
...
...
csst_dag/dag/l1.py
View file @
b2abedfc
...
@@ -125,7 +125,11 @@ class GeneralL1DAG(BaseDAG):
...
@@ -125,7 +125,11 @@ class GeneralL1DAG(BaseDAG):
priority
=
priority
,
priority
=
priority
,
)
)
if
demo
:
if
demo
:
print
(
json
.
dumps
(
dag_group_run
,
indent
=
4
))
# print(json.dumps(dag_group_run, indent=4))
# try single-lined json verbose
print
(
" - "
+
json
.
dumps
(
dag_group_run
,
indent
=
None
,
separators
=
(
","
,
":"
))
)
# find level0 data records
# find level0 data records
recs
=
level0
.
find
(
recs
=
level0
.
find
(
...
@@ -159,7 +163,6 @@ class GeneralL1DAG(BaseDAG):
...
@@ -159,7 +163,6 @@ class GeneralL1DAG(BaseDAG):
obs_group
=
obs_group
,
obs_group
=
obs_group
,
obs_id
=
this_rec
[
"obs_id"
],
obs_id
=
this_rec
[
"obs_id"
],
**
additional_keys
,
**
additional_keys
,
**
kwargs
,
)
)
if
demo
:
if
demo
:
print
(
json
.
dumps
(
this_dag_run
,
indent
=
4
))
print
(
json
.
dumps
(
this_dag_run
,
indent
=
4
))
...
...
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