Skip to content

Commit

Permalink
add ignored exceptions for SVM/MVM
Browse files Browse the repository at this point in the history
  • Loading branch information
raswaters committed Sep 25, 2024
1 parent 09a6b38 commit 5c7ff9d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions caldp/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,11 @@ class SvmManager(Manager):
Runs SVM workflow on dataset_input.out file.
"""

# In some cases, the inputs to SVM are not suitable for SVM generation.
# 55. Only non-viable or SBC/HRC images in the multi-visit table - no processing done.
# 65. No viable images in single/multi-visit table - no processing done.
ignore_err_nums = [55, 65]

def __init__(self, dataset, input_uri, output_uri):
super().__init__(dataset, input_uri, output_uri)
self.ipppss = get_svm_obs_set(self.dataset)
Expand Down Expand Up @@ -1066,6 +1071,11 @@ class MvmManager(Manager):
Runs MVM workflow on dataset_input.out file.
"""

# In some cases, the inputs to SVM are not suitable for SVM generation.
# 55. Only non-viable or SBC/HRC images in the multi-visit table - no processing done.
# 65. No viable images in single/multi-visit table - no processing done.
ignore_err_nums = [55, 65]

def __init__(self, dataset, input_uri, output_uri):
super().__init__(dataset, input_uri, output_uri)
self.runmultihap = "runmultihap"
Expand Down

0 comments on commit 5c7ff9d

Please sign in to comment.