Skip to content

Commit 0ed171a

Browse files
committed
linting
1 parent 4d3a119 commit 0ed171a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/rra_building_density/process/microsoft.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def format_microsoft_main(
7878
print("Scaling height to meters")
7979
full_tile = utils.process_microsoft_height(full_tile)
8080
elif measure != "density":
81-
raise ValueError(f"Unexpected Microsoft measure: {measure}")
81+
msg = f"Unexpected Microsoft measure: {measure}"
82+
raise ValueError(msg)
8283
full_tile = utils.suppress_noise(full_tile)
8384

8485
print(f"Saving {measure} tile")

src/rra_building_density/process/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ def process_microsoft_height(
272272
tile: rt.RasterArray,
273273
) -> rt.RasterArray:
274274
if tile.set_no_data_value(0).to_numpy().max() > 1:
275-
raise ValueError("Unexpected - Microsoft height exceeds 1.")
275+
msg = "Unexpected - Microsoft height exceeds 1."
276+
raise ValueError(msg)
276277
tile *= 100
277278

278279
return tile

0 commit comments

Comments
 (0)