Drop -1,+1 fallback and require the axisRanges dict to be complete

This commit is contained in:
Just van Rossum 2022-10-13 09:07:59 +02:00
parent 16183b9436
commit e02e9dc295

View File

@ -169,7 +169,7 @@ def supportScalar(location, support, ot=True, extrapolate=False, axisRanges=None
continue
if extrapolate:
axisMin, axisMax = axisRanges.get(axis, (-1, +1))
axisMin, axisMax = axisRanges[axis]
if v < axisMin and lower <= axisMin:
if peak <= axisMin and peak < upper:
scalar *= (v - upper) / (peak - upper)