Skip to content

Commit

Permalink
fix: Fix linting issue (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
hungpham2511 authored Jul 14, 2022
1 parent e17a248 commit ba71797
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Unreleased
## 0.5.0 (July 08 2021)

- [cpp] Minor PR to make the cpp part compiles on windows64 (msvc). Thanks @ahoarau.
- [cpp] Fixed out of bounds issue in parametrizer::ConstAccel.
Expand Down
6 changes: 3 additions & 3 deletions toppra/interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,15 @@ def waypoints(self):

def eval(self, ss_sam: Union[float, np.ndarray]):
"""Evaluate the path values."""
return self.__call__(ss_sam, 0)
return self(ss_sam, 0)

def evald(self, ss_sam: Union[float, np.ndarray]):
"""Evaluate the path first-derivatives."""
return self.__call__(ss_sam, 1)
return self(ss_sam, 1)

def evaldd(self, ss_sam: Union[float, np.ndarray]):
"""Evaluate the path second-derivatives."""
return self.__call__(ss_sam, 2)
return self(ss_sam, 2)


class RaveTrajectoryWrapper(AbstractGeometricPath):
Expand Down
2 changes: 1 addition & 1 deletion toppra/parametrizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def plot_parametrization(self, show: bool = False, n_sample: int = 500) -> None:
# small decrement to make sure all indices are valid
ts = np.linspace(self.path_interval[0], self.path_interval[1], n_sample)
ss, vs, _ = self._eval_params(ts)
qs = self.__call__(ts, 0)
qs = self(ts, 0)

plt.subplot(2, 2, 1)
plt.plot(ts, ss, label="s(t)")
Expand Down

0 comments on commit ba71797

Please sign in to comment.