Skip to content

Commit

Permalink
Linter updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Feb 17, 2025
1 parent a335758 commit 5f8fe73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maps4fs/generator/component/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def create_foundations(self, dem_image: np.ndarray) -> np.ndarray:
buildings = self.get_infolayer_data(Parameters.TEXTURES, Parameters.BUILDINGS)
if not buildings:
self.logger.warning("Buildings data not found in textures info layer.")
return
return dem_image

self.logger.debug("Found %s buildings in textures info layer.", len(buildings))

Expand All @@ -138,7 +138,7 @@ def create_foundations(self, dem_image: np.ndarray) -> np.ndarray:
mask = np.zeros(dem_image.shape, dtype=np.uint8)

try:
cv2.fillPoly(mask, [building_np], 255)
cv2.fillPoly(mask, [building_np], 255) # type: ignore
except Exception as e:
self.logger.debug("Could not create mask for building with error: %s", e)
continue
Expand Down

0 comments on commit 5f8fe73

Please sign in to comment.