Skip to content

Commit 4af7e24

Browse files
DavideObertondem0
authored andcommitted
Fixed deform implementation to run with python 3.11
1 parent 0bf4047 commit 4af7e24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bladex/deform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def compute_deformed_parameters(self, param, tol=1e-3):
305305
if index.shape[0] > 1:
306306
# In case more neighbors are found, then take first value only.
307307
index = index[0]
308-
self.deformed_parameters[param][i] = self.spline[param][index, 1]
308+
self.deformed_parameters[param][i] = self.spline[param][index, 1].item()
309309

310310
def compute_all(self,
311311
rbf_points=1000,

0 commit comments

Comments
 (0)