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
c80267f5
Commit
c80267f5
authored
Jul 10, 2025
by
BO ZHANG
🏀
Browse files
remove manual prc stats
parent
c8b08d9b
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_dag/cli/inspect.py
View file @
c80267f5
...
...
@@ -11,8 +11,37 @@ python -m csst_dag.cli.inspect \
--dataset=csst-msc-c9-25sqdeg-v3
\
--instrument=MSC
\
--obs-type=WIDE
\
--obs-group=W2
\
--prc-status=0
--obs-group=W2
25平方度宽场
python -m csst_dag.cli.inspect
\
--level=0
\
--dataset=csst-msc-c9-25sqdeg-v3
\
--instrument=MSC
\
--obs-type=WIDE
python -m csst_dag.cli.inspect
\
--level=0
\
--dataset=csst-msc-c11-1000sqdeg-wide-test-v1
\
--instrument=MSC
\
--obs-type=WIDE
python -m csst_dag.cli.inspect
\
--level=1
\
--dataset=csst-msc-c11-1000sqdeg-wide-test-v1
\
--instrument=MSC
\
--obs-type=WIDE
\
--data-model=csst-msc-l1-mbi
\
--batch-id=1000sqdeg-test-b1
CPIC:
python -m csst_dag.cli.inspect
\
--level=0
\
--dataset=csst-cpic-c11-hip71681-v1
\
--instrument=CPIC
\
--obs-type=SCI
\
--obs-group=hip71681
"""
import
argparse
...
...
@@ -83,13 +112,7 @@ else:
batch_id
=
args
.
batch_id
,
)
print
(
f
"
{
len
(
plan_basis
)
}
plan basis,
{
len
(
data_basis
)
}
data basis found"
)
data_basis
.
remove_columns
([
"file_name"
,
"_id"
])
# zero / non-zero prc_status
u_prc_status
,
c_prc_status
=
np
.
unique
(
data_basis
[
"prc_status"
].
data
,
return_counts
=
True
)
t_prc_status
=
table
.
Table
([
u_prc_status
,
c_prc_status
],
names
=
[
"prc_status"
,
"count"
])
print
(
"Prc status statistics:"
)
t_prc_status
.
pprint_all
()
# data_basis.remove_columns(["file_name", "_id"])
for
stats_type
,
stats_keys
in
dict
(
prc_status
=
[
"dataset"
,
"prc_status"
],
...
...
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