Skip to content

Commit

Permalink
interpolator needs at least one value
Browse files Browse the repository at this point in the history
  • Loading branch information
codingcatgirl committed Jan 5, 2018
1 parent 1adc1b3 commit ac7e2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c3nav/mapdata/render/renderdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def rebuild():
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:
Expand Down

0 comments on commit ac7e2c6

Please sign in to comment.