From ff6cd4ed15ecb82ccb44b826d0acf5eba1639917 Mon Sep 17 00:00:00 2001 From: Toktam Ebadi Date: Fri, 1 Nov 2024 03:21:33 +0000 Subject: [PATCH] Added a test to ensure nan is replaced with 255 at level3 --- tests/test_lc_level3.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_lc_level3.py b/tests/test_lc_level3.py index 42170784..2bdce289 100644 --- a/tests/test_lc_level3.py +++ b/tests/test_lc_level3.py @@ -24,10 +24,10 @@ def image_groups(): [110, 110, 210], [124, 110, 210], [221, 210, 210], - [223, 255, 223], + [223, np.nan, 223], ] ], - dtype="uint8", + dtype="float32", ) urban = np.array( @@ -48,10 +48,10 @@ def image_groups(): [111, 112, 255], [255, 112, 255], [255, 255, 255], - [255, 255, 255], + [255, np.nan, np.nan], ] ], - dtype="uint8", + dtype="float32", ) tuples = [