Skip to content
Snippets Groups Projects

restore capability and workflow

Merged Charlotte Hausman requested to merge Restore_Capability into main
2 files
+ 1
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -50,6 +50,7 @@ def arg_parser() -> argparse.ArgumentParser:
formatter_class=argparse.RawTextHelpFormatter,
)
parser.add_argument(
"-c",
"--standard-cal",
nargs=2,
action="store",
@@ -57,11 +58,24 @@ def arg_parser() -> argparse.ArgumentParser:
help="run the standard calibration CASA pipeline",
)
parser.add_argument(
"-i",
"--standard-img",
nargs=2,
action="store",
required=False,
help="run the standard calibration CASA pipeline",
help="run the standard imaging CASA pipeline",
)
parser.add_argument(
"--restore",
required=False,
action="store_true",
help="run the restore measurement set CASA pipeline, use in conjunction with '-c'",
)
parser.add_argument(
"--integrated",
required=False,
action="store_true",
help="run an integrated calibration-imaging pipeline, use in conjunction with '-i'",
)
return parser
@@ -73,7 +87,10 @@ def main():
if args.standard_cal is not None:
parameters = _get_settings(pathlib.Path(path), args.standard_cal)
parameters["product_type"] = "standard-cal"
if args.restore:
parameters["product_type"] = "restore"
else:
parameters["product_type"] = "standard-cal"
CalibrationLauncher(parameters).launch_casa()
# make sure we return to the parent directory after processing
@@ -81,7 +98,10 @@ def main():
elif args.standard_img is not None:
parameters = _get_settings(pathlib.Path(path), args.standard_img)
parameters["product_type"] = "standard-img"
if args.integrated:
parameters["product_type"] = "integrated"
else:
parameters["product_type"] = "standard-img"
ImagingLauncher(parameters).launch_casa()
# return to parent directory after processing
Loading