Skip to content

Commit 3ae408a

Browse files
committed
Add test asserting the number of included and excluded peaks sums to num of all peaks
1 parent 28768d9 commit 3ae408a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_watershed.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def test_watershed_captures(draeger1: Sequence):
159159
]:
160160
assert key in captures, f"captures should have a '{key}' entry"
161161

162+
assert len(captures["local peaks"]) == len(captures["included peaks"]) + len(captures["excluded peaks"])
163+
162164

163165
def test_watershed_no_amplitude():
164166
eit_data = EITData(

0 commit comments

Comments
 (0)