make linter happy

This commit is contained in:
Laura Klünder 2023-12-11 19:02:19 +01:00
parent 30b0c12ebe
commit ef83e73a36
18 changed files with 31 additions and 26 deletions

View file

@ -101,7 +101,8 @@ class LevelRenderData:
if coords:
last_interpolator = NearestNDInterpolator(np.vstack(coords), np.vstack(values))
else:
last_interpolator = NearestNDInterpolator(np.array([[0, 0]]), np.array([float(render_level.base_altitude)]))
last_interpolator = NearestNDInterpolator(np.array([[0, 0]]),
np.array([float(render_level.base_altitude)]))
"""
second pass, forward to create the LevelRenderData for each level

View file

@ -99,8 +99,8 @@ class MapRenderer:
geometry = altitudearea.geometry.difference(crop_areas)
if not_full_levels:
geometry = geometry.filter(bottom=False)
engine.add_geometry(geometry, altitude=altitudearea.altitude, fill=FillAttribs(RENDER_COLOR_GROUND_FILL),
category='ground', item=i)
engine.add_geometry(geometry, altitude=altitudearea.altitude,
fill=FillAttribs(RENDER_COLOR_GROUND_FILL), category='ground', item=i)
j = 0
for (order, color), areas in altitudearea.colors.items():