Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions climada/entity/exposures/test/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,13 @@ def test_read_raster_pass(self):

def test_assign_raster_pass(self):
"""Test assign_centroids with raster hazard"""
haz = Hazard('FL')

# explicit, easy-to-understand raster centroids for hazard
meta = {
'count': 1, 'crs': DEF_CRS,
'width': 20, 'height': 10,
'transform': rasterio.Affine(1.5, 0.0, -20, 0.0, -1.4, 8)
}
haz.centroids = Centroids(meta=meta)
haz = Hazard('FL', centroids=Centroids(meta=meta))

# explicit points with known results (see `expected_result` for details)
exp = Exposures(crs=DEF_CRS)
Expand Down
Loading