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
c3964bf2
Commit
c3964bf2
authored
Jul 10, 2025
by
BO ZHANG
🏀
Browse files
remove reset.py
parent
6786a8fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/cli/reset.py
deleted
100644 → 0
View file @
6786a8fd
"""
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
(
"--instrument"
,
type
=
str
,
help
=
"Dataset name"
,
default
=
None
)
parser
.
add_argument
(
"--obs-type"
,
type
=
str
,
help
=
"Observation type"
,
default
=
None
)
parser
.
add_argument
(
"--obs-group"
,
type
=
str
,
help
=
"Observation group"
,
default
=
None
)
parser
.
add_argument
(
"--obs-id"
,
type
=
str
,
help
=
"Observation ID"
,
default
=
None
)
parser
.
add_argument
(
"--detector"
,
type
=
str
,
help
=
"Detector"
,
default
=
None
)
parser
.
add_argument
(
"--initial-prc-status"
,
type
=
int
,
help
=
"Initial processing status"
,
default
=-
2
)
parser
.
add_argument
(
"--final-prc-status"
,
type
=
int
,
help
=
"Final processing status"
,
default
=-
1024
)
args
=
parser
.
parse_args
()
print
(
"CLI parameters: "
,
args
)
qr_level0
=
level0
.
find
(
dataset
=
args
.
dataset
,
instrument
=
args
.
instrument
,
obs_type
=
args
.
obs_type
,
obs_group
=
args
.
obs_group
,
obs_id
=
args
.
obs_id
,
detector
=
args
.
detector
,
prc_status
=
args
.
initial_prc_status
,
)
r_update
=
level0
.
update_prc_status
(
[
_
[
"_id"
]
for
_
in
qr_level0
.
data
],
prc_status
=
args
.
final_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