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
5a7a8e09
Commit
5a7a8e09
authored
Jul 10, 2025
by
BO ZHANG
🏀
Browse files
filter_basis: sort via obs_id
parent
51990608
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/dag/_base_dag.py
View file @
5a7a8e09
...
@@ -78,6 +78,8 @@ class BaseDAG:
...
@@ -78,6 +78,8 @@ class BaseDAG:
keys
=
self
.
pattern
.
colnames
,
keys
=
self
.
pattern
.
colnames
,
join_type
=
"inner"
,
join_type
=
"inner"
,
)
)
# sort via obs_id
filtered_data_basis
.
sort
(
keys
=
[
"dataset"
,
"obs_id"
])
if
len
(
filtered_data_basis
)
==
0
:
if
len
(
filtered_data_basis
)
==
0
:
return
plan_basis
[:
0
],
filtered_data_basis
return
plan_basis
[:
0
],
filtered_data_basis
u_data_basis
=
table
.
unique
(
filtered_data_basis
[
"dataset"
,
"obs_id"
])
u_data_basis
=
table
.
unique
(
filtered_data_basis
[
"dataset"
,
"obs_id"
])
...
...
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