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
debc2fb8
Commit
debc2fb8
authored
Jul 23, 2025
by
BO ZHANG
🏀
Browse files
add batch_id and build for level1 inspect
parent
fc117eed
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/cli/inspect.py
View file @
debc2fb8
...
...
@@ -115,13 +115,18 @@ else:
print
(
f
"
{
len
(
plan_basis
)
}
plan basis,
{
len
(
data_basis
)
}
data basis found"
)
# data_basis.remove_columns(["file_name", "_id"])
for
stats_type
,
stats_keys
in
dict
(
prc_status
=
[
"dataset"
,
"prc_status"
],
obs_type
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"prc_status"
],
obs_group
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"obs_group"
,
"prc_status"
],
detector
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"obs_group"
,
"detector"
,
"prc_status"
],
obs_id
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"obs_group"
,
"obs_id"
,
"prc_status"
],
).
items
():
stats_config
=
dict
(
prc_status
=
[
"dataset"
,
"prc_status"
],
obs_type
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"prc_status"
],
obs_group
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"obs_group"
,
"prc_status"
],
detector
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"obs_group"
,
"detector"
,
"prc_status"
],
obs_id
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"obs_group"
,
"obs_id"
,
"prc_status"
],
)
if
args
.
level
==
1
:
for
k
in
stats_config
.
keys
():
stats_config
[
k
].
extend
([
"batch_id"
,
"build"
])
for
stats_type
,
stats_keys
in
stats_config
.
items
():
if
args
.
verbose
:
data_basis
.
pprint_all
()
print
(
"
\n
>>> STATS DIM: "
,
stats_type
)
...
...
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