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:
parent
7b0dc0478d
commit
93e6818a2d
1 changed files with 4 additions and 1 deletions
|
@ -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]):
|
||||
|
|
Loading…
Add table
Reference in a new issue