Skip to content

Commit 3d21b06

Browse files
authored
Fix string equality warnings in SplineFit class (#147)
1 parent 142d6ac commit 3d21b06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spatialmath/spline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,14 @@ def stochastic_downsample_interpolation(
192192
)
193193

194194
sample_time = self.time_data[candidate_removal_index]
195-
if check_type is "local":
195+
if check_type == "local":
196196
angular_error = SO3(self.pose_data[candidate_removal_index]).angdist(
197197
SO3(self.spline.spline_so3(sample_time).as_matrix())
198198
)
199199
euclidean_error = np.linalg.norm(
200200
self.pose_data[candidate_removal_index].t - self.spline.spline_xyz(sample_time)
201201
)
202-
elif check_type is "global":
202+
elif check_type == "global":
203203
angular_error = self.max_angular_error()
204204
euclidean_error = self.max_euclidean_error()
205205
else:

0 commit comments

Comments
 (0)