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
c76e56a6
Commit
c76e56a6
authored
Jul 10, 2025
by
BO ZHANG
🏀
Browse files
add obs_group stats in inspect
parent
de5fce99
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/cli/inspect.py
View file @
c76e56a6
...
@@ -117,8 +117,9 @@ print(f"{len(plan_basis)} plan basis, {len(data_basis)} data basis found")
...
@@ -117,8 +117,9 @@ print(f"{len(plan_basis)} plan basis, {len(data_basis)} data basis found")
for
stats_type
,
stats_keys
in
dict
(
for
stats_type
,
stats_keys
in
dict
(
prc_status
=
[
"dataset"
,
"prc_status"
],
prc_status
=
[
"dataset"
,
"prc_status"
],
obs_type
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"prc_status"
],
obs_type
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"prc_status"
],
detector
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"detector"
,
"prc_status"
],
obs_group
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"obs_group"
,
"prc_status"
],
obs_id
=
[
"dataset"
,
"instrument"
,
"obs_type"
,
"obs_id"
,
"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
():
).
items
():
print
(
"
\n
>>> STATS DIM: "
,
stats_type
)
print
(
"
\n
>>> STATS DIM: "
,
stats_type
)
u_data
,
c_data
=
np
.
unique
(
data_basis
[
stats_keys
],
return_counts
=
True
)
u_data
,
c_data
=
np
.
unique
(
data_basis
[
stats_keys
],
return_counts
=
True
)
...
...
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