interpolator needs at least one value
This commit is contained in:
parent
1adc1b32de
commit
ac7e2c65fc
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ class LevelRenderData:
|
|||
if coords:
|
||||
last_interpolator = NearestNDInterpolator(np.vstack(coords), np.vstack(values))
|
||||
else:
|
||||
last_interpolator = NearestNDInterpolator(np.zeros((8, 2)), np.zeros((0, 1)))
|
||||
last_interpolator = NearestNDInterpolator(np.array([[0, 0]]), np.array([float(level.base_altitude)]))
|
||||
|
||||
for i, level in enumerate(levels):
|
||||
if level.on_top_of_id is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue