Skip to content

Commit ff6cd4e

Browse files
committed
Added a test to ensure nan is replaced with 255 at level3
1 parent a0a92c5 commit ff6cd4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_lc_level3.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ def image_groups():
2424
[110, 110, 210],
2525
[124, 110, 210],
2626
[221, 210, 210],
27-
[223, 255, 223],
27+
[223, np.nan, 223],
2828
]
2929
],
30-
dtype="uint8",
30+
dtype="float32",
3131
)
3232

3333
urban = np.array(
@@ -48,10 +48,10 @@ def image_groups():
4848
[111, 112, 255],
4949
[255, 112, 255],
5050
[255, 255, 255],
51-
[255, 255, 255],
51+
[255, np.nan, np.nan],
5252
]
5353
],
54-
dtype="uint8",
54+
dtype="float32",
5555
)
5656

5757
tuples = [

0 commit comments

Comments
 (0)