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
6ff01013
Commit
6ff01013
authored
Jul 10, 2025
by
BO ZHANG
🏀
Browse files
fixed no data bug in filtering
parent
c80267f5
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_dag/dag/_base_dag.py
View file @
6ff01013
...
@@ -87,6 +87,12 @@ class BaseDAG:
...
@@ -87,6 +87,12 @@ class BaseDAG:
keys
=
self
.
pattern
.
colnames
,
keys
=
self
.
pattern
.
colnames
,
join_type
=
"inner"
,
join_type
=
"inner"
,
)
)
if
len
(
filtered_data_basis
)
==
0
:
print
(
">>> Input plan basis:"
)
plan_basis
.
pprint
()
print
(
">>> Input data basis:"
)
data_basis
.
pprint
()
raise
ValueError
(
"No data found for the given pattern."
)
u_data_basis
=
table
.
unique
(
filtered_data_basis
[
"dataset"
,
"obs_id"
])
u_data_basis
=
table
.
unique
(
filtered_data_basis
[
"dataset"
,
"obs_id"
])
if
len
(
u_data_basis
)
==
0
:
if
len
(
u_data_basis
)
==
0
:
filtered_plan_basis
=
plan_basis
[:
0
]
filtered_plan_basis
=
plan_basis
[:
0
]
...
...
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