From 6dd5f51da796a3a802ee980ec8a20779e1ce4813 Mon Sep 17 00:00:00 2001 From: JP Date: Fri, 15 Sep 2023 14:58:51 -0700 Subject: [PATCH] added try statement when validating decimation level --- aurora/pipelines/transfer_function_kernel.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/aurora/pipelines/transfer_function_kernel.py b/aurora/pipelines/transfer_function_kernel.py index f0f5951e..bee29517 100644 --- a/aurora/pipelines/transfer_function_kernel.py +++ b/aurora/pipelines/transfer_function_kernel.py @@ -299,9 +299,15 @@ def make_processing_summary(self): print(group) print(df) try: - assert ( - df.dec_level.diff()[1:] == 1 - ).all() # dec levels increment by 1 + try: + assert ( + df.dec_level.diff()[1:] == 1 + ).all() # dec levels increment by 1 + except AssertionError: + print( + f"Skipping {group} because decimation levels are messy." + ) + continue assert df.dec_factor.iloc[0] == 1 assert df.dec_level.iloc[0] == 0 except AssertionError: