Skip to content

Commit

Permalink
add test and notebook section for tree canopy hight layer
Browse files Browse the repository at this point in the history
  • Loading branch information
chrowe authored May 29, 2024
1 parent e33f688 commit cbdf0a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/layers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ee

from city_metrix.layers import LandsatCollection2, Albedo, LandSurfaceTemperature, EsaWorldCover, EsaWorldCoverClass, TreeCover, AverageNetBuildingHeight, OpenStreetMap, OpenStreetMapClass, UrbanLandUse, OpenBuildings
from city_metrix.layers import LandsatCollection2, Albedo, LandSurfaceTemperature, EsaWorldCover, EsaWorldCoverClass, TreeCover, AverageNetBuildingHeight, OpenStreetMap, OpenStreetMapClass, UrbanLandUse, OpenBuildings, TreeCanopyHeight
from city_metrix.layers.layer import get_image_collection
from .conftest import MockLayer, MockMaskLayer, ZONES, LARGE_ZONES, MockLargeLayer

Expand Down Expand Up @@ -90,3 +90,7 @@ def test_urban_land_use():
def test_openbuildings():
count = OpenBuildings().get_data(SAMPLE_BBOX).count().sum()
assert count

def test_tree_canopy_hight():
count = TreeCanopyHeight().get_data(SAMPLE_BBOX).count()
assert count

0 comments on commit cbdf0a3

Please sign in to comment.