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
ced55eb3
Commit
ced55eb3
authored
Jul 08, 2025
by
BO ZHANG
🏀
Browse files
add find_plan_level0_basis and find_plan_level1_basis
parent
727f17da
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/dag/dispatcher.py
→
csst_dag/dag/
_
dispatcher.py
View file @
ced55eb3
...
...
@@ -196,6 +196,32 @@ class Dispatcher:
)
return
data_basis
@
staticmethod
def
find_plan_level0_basis
(
**
kwargs
)
->
tuple
(
table
.
Table
):
data_basis
=
Dispatcher
.
find_level0_basis
(
**
kwargs
)
plan_basis
=
Dispatcher
.
find_plan_basis
(
**
kwargs
)
u_data_basis
=
table
.
unique
(
data_basis
[
"dataset"
,
"obs_id"
])
relevant_plan
=
table
.
join
(
u_data_basis
,
plan_basis
,
keys
=
[
"dataset"
,
"obs_id"
],
join_type
=
PLAN_JOIN_TYPE
,
)
return
relevant_plan
,
data_basis
@
staticmethod
def
find_plan_level1_basis
(
**
kwargs
)
->
tuple
(
table
.
Table
):
data_basis
=
Dispatcher
.
find_level1_basis
(
**
kwargs
)
plan_basis
=
Dispatcher
.
find_plan_basis
(
**
kwargs
)
u_data_basis
=
table
.
unique
(
data_basis
[
"dataset"
,
"obs_id"
])
relevant_plan
=
table
.
join
(
u_data_basis
,
plan_basis
,
keys
=
[
"dataset"
,
"obs_id"
],
join_type
=
PLAN_JOIN_TYPE
,
)
return
relevant_plan
,
data_basis
@
staticmethod
def
dispatch_file
(
plan_basis
:
table
.
Table
,
...
...
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