Issue #1459 fix interp function when data is shared amongst multiple parameters.
Former-commit-id:17b4c241ff
[formerly167fe74ee7
] [formerlyf04c6b7e1e
] [formerly17b4c241ff
[formerly167fe74ee7
] [formerlyf04c6b7e1e
] [formerlyc0e9f3429b
[formerlyf04c6b7e1e
[formerly 9c8281cd26029e9b3979fbc8f0ed713b66f092ba]]]] Former-commit-id:c0e9f3429b
Former-commit-id:f268d69ccd
[formerly76802aefa9
] [formerly 16038dd9e7f3dfe82587ac8cc0201440a16a7f15 [formerly93e6818a2d
]] Former-commit-id: bf0c0574c262df1cbaff053a6cdb571f5f814dd2 [formerly4a051b3a57
] Former-commit-id:6ee146e0ed
This commit is contained in:
parent
1eac481c4a
commit
06b674cd61
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