Skip to content

Commit

Permalink
Removed size count since varies between runs
Browse files Browse the repository at this point in the history
  • Loading branch information
kcartier-wri committed Aug 27, 2024
1 parent 5e61380 commit 499355c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/test_layer_dimensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ def test_ndvi_dimensions():
data = NdviSentinel2(year=2023).get_data(BBOX)
data_for_map = post_process_layer(data, value_threshold=0.4, convert_to_percentage=True)

expected_size = 37213
actual_size = data_for_map.size
expected_min = 0
actual_min = data_for_map.values.min()
expected_max = 85
actual_max = data_for_map.values.max()

assert actual_size == expected_size
assert actual_min == expected_min
assert actual_max == expected_max

0 comments on commit 499355c

Please sign in to comment.