Skip to content

Commit

Permalink
added try statement when validating decimation level
Browse files Browse the repository at this point in the history
  • Loading branch information
kujaku11 committed Sep 15, 2023
1 parent 77c2a0c commit 6dd5f51
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions aurora/pipelines/transfer_function_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Check warning on line 307 in aurora/pipelines/transfer_function_kernel.py

View check run for this annotation

Codecov / codecov/patch

aurora/pipelines/transfer_function_kernel.py#L306-L307

Added lines #L306 - L307 were not covered by tests
f"Skipping {group} because decimation levels are messy."
)
continue

Check warning on line 310 in aurora/pipelines/transfer_function_kernel.py

View check run for this annotation

Codecov / codecov/patch

aurora/pipelines/transfer_function_kernel.py#L310

Added line #L310 was not covered by tests
assert df.dec_factor.iloc[0] == 1
assert df.dec_level.iloc[0] == 0
except AssertionError:
Expand Down

0 comments on commit 6dd5f51

Please sign in to comment.