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
70fc5c2f
Commit
70fc5c2f
authored
May 23, 2025
by
BO ZHANG
🏀
Browse files
add --demo (store_true)
parent
46a1628b
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/cli/cpic.py
View file @
70fc5c2f
...
@@ -5,13 +5,16 @@ Process an CPIC dataset, given a set of parameters.
...
@@ -5,13 +5,16 @@ Process an CPIC dataset, given a set of parameters.
Example
Example
-------
-------
python -m csst_dag.cli.cpic -h
python -m csst_dag.cli.cpic
\
python -m csst_dag.cli.cpic
\
--dataset=csst-cpic-c11-hip71681-v1
\
--dataset=csst-cpic-c11-hip71681-v1
\
--obs-group=hip71681
\
--obs-group=hip71681
\
--batch-id=csci-test-20250507
\
--batch-id=csci-test-20250507
\
--priority=1
\
--priority=1
\
--initial-prc-status=-1024
\
--initial-prc-status=-1024
\
--final-prc-status=-2
--final-prc-status=-2
\
--demo
"""
"""
from
csst_dag.dag
import
CsstDAG
from
csst_dag.dag
import
CsstDAG
...
@@ -34,6 +37,9 @@ parser.add_argument(
...
@@ -34,6 +37,9 @@ parser.add_argument(
parser
.
add_argument
(
parser
.
add_argument
(
"--final-prc-status"
,
type
=
int
,
help
=
"Final processing status"
,
default
=-
2
"--final-prc-status"
,
type
=
int
,
help
=
"Final processing status"
,
default
=-
2
)
)
parser
.
add_argument
(
"--demo"
,
action
=
"store_true"
,
help
=
"Enable demo mode"
,
default
=
False
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
print
(
"CLI parameters: "
,
args
)
print
(
"CLI parameters: "
,
args
)
...
...
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