Skip to content

Commit

Permalink
MNT: Add optional descriptor field to the cli (IMAP-Science-Operation…
Browse files Browse the repository at this point in the history
  • Loading branch information
greglucas authored Jun 18, 2024
1 parent 1c7f393 commit 6b1a2ec
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions imap_processing/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def _parse_args():
The expected input format is:
--instrument "mag"
--data-level "l1a"
--descriptor "all"
--start-date "20231212"
--version "v001"
--dependency "[
Expand All @@ -85,6 +86,7 @@ def _parse_args():
"for a specific instrument and data level. Example usage: "
'"imap_cli --instrument "mag" '
'--data-level "l1a"'
'--descriptor "all"'
' --start-date "20231212"'
'--version "v001"'
'--dependency "['
Expand All @@ -103,6 +105,10 @@ def _parse_args():
"The data level to process. Acceptable values are: "
f"{imap_processing.PROCESSING_LEVELS}"
)
descriptor_help = (
"The descriptor of the product to process. This could be 'all' or a specific "
"descriptor like 'sci-1min'. Default is 'all'."
)
dependency_help = (
"Dependency information in str format."
"Example: '[{'instrument': 'mag',"
Expand Down Expand Up @@ -138,6 +144,11 @@ def _parse_args():
)
parser.add_argument("--instrument", type=str, required=True, help=instrument_help)
parser.add_argument("--data-level", type=str, required=True, help=level_help)
# TODO: unused for now, but needed for batch job handling
# pass through of status in AWS
parser.add_argument(
"--descriptor", type=str, required=False, help=descriptor_help, default="all"
)

parser.add_argument(
"--start-date",
Expand Down

0 comments on commit 6b1a2ec

Please sign in to comment.