Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3d21b06

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎spatialmath/spline.py

Copy file name to clipboardExpand all lines: spatialmath/spline.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.