Skip to content

Commit 23a28d6

Browse files
Bernarda PetekBernarda Petek
authored andcommitted
Fix failing test; removed alpha channel
1 parent 461b39e commit 23a28d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
numpy>=1.3
1+
numpy>=1.3,<2
22
imageio~=2.9.0
33
imageio-ffmpeg==0.4.7
44
matplotlib>=3
@@ -9,4 +9,4 @@ scikit-image>=0.17
99
networkx>=2.7.1
1010
scikit-learn>=0.24
1111
opencv-python~=4.5.5
12-
pandas~=1.4.3
12+
pandas~=1.4.3

test/test_bootplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def test_bmp():
7878

7979
def test_merge():
8080
np.random.seed(0)
81-
images = np.random.randint(low=0, high=256, size=(25, 100, 100, 4))
81+
images = np.random.randint(low=0, high=256, size=(25, 100, 100, 3))
8282
merged = merge_images(images)
83-
assert merged.shape == (100, 100, 4)
83+
assert merged.shape == (100, 100, 3)
8484
assert np.min(merged) >= 0
8585
assert np.max(merged) <= 255
8686
assert merged.dtype == np.uint8

0 commit comments

Comments
 (0)