Skip to content

Commit

Permalink
validate args
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarshak committed Nov 21, 2023
1 parent 771782b commit 6c33e42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions isce2_topsapp/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 6c33e42

Please sign in to comment.