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
76a50d62
Commit
76a50d62
authored
Jul 21, 2025
by
BO ZHANG
🏀
Browse files
set default to "" while extracting basis
parent
fe4c9763
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/dag/_dispatcher.py
View file @
76a50d62
...
@@ -116,7 +116,7 @@ def override_common_keys(d1: dict, d2: dict) -> dict:
...
@@ -116,7 +116,7 @@ def override_common_keys(d1: dict, d2: dict) -> dict:
def
extract_basis_table
(
dlist
:
list
[
dict
],
basis_keys
:
tuple
)
->
table
.
Table
:
def
extract_basis_table
(
dlist
:
list
[
dict
],
basis_keys
:
tuple
)
->
table
.
Table
:
"""Extract basis key-value pairs from a list of dictionaries."""
"""Extract basis key-value pairs from a list of dictionaries."""
return
table
.
Table
([{
k
:
d
.
get
(
k
)
for
k
in
basis_keys
}
for
d
in
dlist
])
return
table
.
Table
([{
k
:
d
.
get
(
k
,
default
=
""
)
for
k
in
basis_keys
}
for
d
in
dlist
])
def
split_data_basis
(
data_basis
:
table
.
Table
,
n_split
:
int
=
1
)
->
list
[
table
.
Table
]:
def
split_data_basis
(
data_basis
:
table
.
Table
,
n_split
:
int
=
1
)
->
list
[
table
.
Table
]:
...
@@ -573,7 +573,7 @@ class Dispatcher:
...
@@ -573,7 +573,7 @@ class Dispatcher:
plan_basis
:
table
.
Table
,
plan_basis
:
table
.
Table
,
data_basis
:
table
.
Table
,
data_basis
:
table
.
Table
,
# n_jobs: int = 1,
# n_jobs: int = 1,
):
)
->
list
[
dict
]
:
# return an empty list if input is empty
# return an empty list if input is empty
if
len
(
plan_basis
)
==
0
or
len
(
data_basis
)
==
0
:
if
len
(
plan_basis
)
==
0
or
len
(
data_basis
)
==
0
:
return
[]
return
[]
...
...
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