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
96923b68
Commit
96923b68
authored
Jul 04, 2025
by
BO ZHANG
🏀
Browse files
init reset
parent
4f218a92
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_dag/cli/reset.py
0 → 100644
View file @
96923b68
"""
Aim
---
Reset a dataset.
Example
-------
python -m csst_dag.cli.reset -h
python -m csst_dag.cli.reset
\
--dataset=csst-msc-c9-25sqdeg-v3
\
--final-prc-status=-2
"""
from
csst_dag.dag
import
CsstDAGs
from
csst_dfs_client
import
level0
import
argparse
import
tqdm
parser
=
argparse
.
ArgumentParser
(
description
=
"Scheduler for MSC L1 pipeline."
,
formatter_class
=
argparse
.
ArgumentDefaultsHelpFormatter
,
)
# data related parameters
parser
.
add_argument
(
"--dataset"
,
type
=
str
,
help
=
"Dataset name"
)
parser
.
add_argument
(
"--final-prc-status"
,
type
=
int
,
help
=
"Final processing status"
,
default
=-
2
)
args
=
parser
.
parse_args
()
print
(
"CLI parameters: "
,
args
)
recs
=
level0
.
find
(
dataset
=
args
.
dataset
)
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