From 6c33e42ad5afc2da923b908d9fecaa9d42aecf1c Mon Sep 17 00:00:00 2001 From: Charlie Marshak Date: Tue, 21 Nov 2023 11:50:45 -0800 Subject: [PATCH] validate args --- isce2_topsapp/__main__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/isce2_topsapp/__main__.py b/isce2_topsapp/__main__.py index 7d2a874..aa43569 100644 --- a/isce2_topsapp/__main__.py +++ b/isce2_topsapp/__main__.py @@ -203,6 +203,12 @@ def update_slc_namespace(args: Namespace) -> Namespace: args.secondary_scenes = [ item for sublist in args.secondary_scenes for item in sublist ] + + args.esd_coherence_threshold = esd_threshold_argument(args.esd_coherence_threshold) + + if args.goldstein_filter_power < 0: + raise ValueError('Goldstein filter power must be non-negative') + return args