Skip to content

Commit c383744

Browse files
author
Andrea Mola
committed
fixed extra param pass to RBFfactory functions.removed *power* calls
1 parent 9b3930d commit c383744

File tree

6 files changed

+2
-13
lines changed

6 files changed

+2
-13
lines changed

pygem/rbf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ def __call__(self, src_pts):
392392
H = np.zeros((src_pts.shape[0], self.n_control_points + 3 + 1))
393393
H[:, :self.n_control_points] = self.basis(
394394
cdist(src_pts, self.original_control_points),
395-
self.radius)
396-
#**self.extra)
395+
self.radius,
396+
**self.extra)
397397
H[:, self.n_control_points] = 1.0
398398
H[:, -3:] = src_pts
399399
return np.asarray(np.dot(H, self.weights))

tests/test_datasets/parameters_rbf_bugged_01.prm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ basis function: gaussian_spline
1212
# of the class RBF for details.
1313
radius: 0.5
1414

15-
power = 2
1615

1716
[Control points]
1817
# This section describes the RBF control points.

tests/test_datasets/parameters_rbf_bugged_02.prm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ basis function: gaussian_splines
1212
# of the class RBF for details.
1313
radius: 0.5
1414

15-
power = 2
1615

1716
[Control points]
1817
# This section describes the RBF control points.

tests/test_datasets/parameters_rbf_cube.prm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ basis function: gaussian_spline
1212
# of the class RBF for details.
1313
radius: 0.5
1414

15-
# The power parameter k for polyharmonic spline
16-
# See the documentation for details
17-
power: 2
1815

1916

2017
[Control points]

tests/test_datasets/parameters_rbf_cube_out_true.prm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ basis function: gaussian_spline
1212
# of the class RBF for details.
1313
radius: 0.5
1414

15-
# The power parameter k for polyharmonic spline
16-
# See the documentation for details
17-
power: 2
1815

1916

2017
[Control points]

tests/test_datasets/parameters_rbf_default.prm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ basis function: gaussian_spline
1212
# of the class RBF for details.
1313
radius: 0.5
1414

15-
# The power parameter k for polyharmonic spline
16-
# See the documentation for details
17-
power: 2
1815

1916

2017
[Control points]

0 commit comments

Comments
 (0)