Skip to content

Commit

Permalink
fix level1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Emma Ai committed Nov 15, 2024
1 parent 08e5f43 commit 158fb06
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/test_landcover_plugin_a1.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def dataset():
def test_l3_classes(dataset):
stats_l3 = StatsVegClassL1(
output_classes={
"aquatic_veg": 124,
"aquatic_veg_wood": 124,
"aquatic_veg_herb": 125,
"terrestrial_veg": 110,
"water": 221,
"intertidal": 223,
Expand All @@ -141,7 +142,7 @@ def test_l3_classes(dataset):
expected_res = np.array(
[
[
[223, 221, 210, 124],
[223, 221, 210, 125],
[223, 223, 223, 210],
[223, 221, 223, 223],
[221, 223, 223, 223],
Expand All @@ -157,7 +158,8 @@ def test_l3_classes(dataset):
def test_l4_water_seasonality(dataset):
stats_l3 = StatsVegClassL1(
output_classes={
"aquatic_veg": 124,
"aquatic_veg_wood": 124,
"aquatic_veg_herb": 125,
"terrestrial_veg": 110,
"water": 221,
"intertidal": 223,
Expand Down Expand Up @@ -203,7 +205,8 @@ def test_l4_water_seasonality(dataset):
def test_reduce(dataset):
stats_l3 = StatsVegClassL1(
output_classes={
"aquatic_veg": 124,
"aquatic_veg_wood": 124,
"aquatic_veg_herb": 125,
"terrestrial_veg": 110,
"water": 221,
"intertidal": 223,
Expand Down

0 comments on commit 158fb06

Please sign in to comment.