Skip to content

Commit

Permalink
Mock the veg and bare thresholds in the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tebadi committed Nov 22, 2024
1 parent 93dfded commit f0f265d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_lc_l4_natural_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
)
Expand Down

0 comments on commit f0f265d

Please sign in to comment.