Drop -1,+1 fallback and require the axisRanges dict to be complete
This commit is contained in:
parent
16183b9436
commit
e02e9dc295
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user