From f0f265d3f1a7fd033c5fc17ab649b3517bdfe935 Mon Sep 17 00:00:00 2001 From: Toktam Ebadi Date: Fri, 22 Nov 2024 00:17:50 +0000 Subject: [PATCH] Mock the veg and bare thresholds in the unit test --- tests/test_lc_l4_natural_surface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_lc_l4_natural_surface.py b/tests/test_lc_l4_natural_surface.py index adf32518..47b2590d 100644 --- a/tests/test_lc_l4_natural_surface.py +++ b/tests/test_lc_l4_natural_surface.py @@ -193,6 +193,9 @@ def test_ns(): stats_l4 = StatsLccsLevel4() level3 = lc_level3.lc_level3(xx) lifeform = lc_lifeform.lifeform(xx) + + + veg_threshold = [1, 4, 15, 40, 65, 100] veg_cover = l4_veg_cover.canopyco_veg_con(xx, stats_l4.veg_threshold) # Apply cultivated to match the code in Level4 processing @@ -204,6 +207,7 @@ def test_ns(): ) # Bare gradation + bare_threshold = [20, 60] bare_gradation = l4_bare_gradation.bare_gradation( xx, stats_l4.bare_threshold, veg_cover )