Issue #1459 fix interp function when data is shared amongst multiple parameters.

Former-commit-id: f04c6b7e1e [formerly 9c8281cd26029e9b3979fbc8f0ed713b66f092ba]
Former-commit-id: c0e9f3429b
This commit is contained in:
Ben Steffensmeier 2013-01-07 16:39:45 -06:00
parent 7b0dc0478d
commit 93e6818a2d

View file

@ -18,7 +18,7 @@
# further licensing information.
##
from scipy.interpolate import Rbf
from numpy import zeros, float32, NaN, isnan
from numpy import zeros, float32, NaN, isnan, array
##
# Designed to replace interp_up and interp_down in design files for point data
@ -31,6 +31,9 @@ def execute(paramArray, vertArray, numLevels, vertPoints, maxGap=None):
if type(verts) == float32:
verts = [verts]
params = paramArray[i]
# clone verts and params before modifying
verts = array(verts)
params = array(params)
gi = 0
for ci in range(len(verts)):
if isnan(verts[ci]) or isnan(params[ci]):