Commit 382efabc authored by Pierre Paleo's avatar Pierre Paleo
Browse files

cli: Add --slice constraint

parent 58f49172
......@@ -45,6 +45,13 @@ def main():
logfile=args["log_file"]
)
# For now we need the --slice argument
if args["slice"].strip() == "":
msg = "Need to provide the --slice argument (ex. --slice 1024 or --slice 0-1024)"
logger.fatal(msg)
exit(1)
#
subregion = get_subregion(
args["slice"],
proc.dataset_infos.radio_dims[-1]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment