From 472560ab691587456101781e3b2a10ffcd7b12f9 Mon Sep 17 00:00:00 2001 From: Jien Cao Date: Fri, 27 Sep 2024 11:09:25 -0400 Subject: [PATCH] more fixes --- .github/workflows/sphinx.yml | 4 ++-- spatialmath/base/animate.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 7ce7d443..e67e7aa6 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -9,10 +9,10 @@ jobs: if: ${{ github.event_name != 'pull_request' }} steps: - uses: actions/checkout@v2 - - name: Set up Python 3.7 + - name: Set up Python 3.8 uses: actions/setup-python@v5 with: - python-version: 3.7 + python-version: 3.8 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/spatialmath/base/animate.py b/spatialmath/base/animate.py index 7654a5a0..a2e31f72 100755 --- a/spatialmath/base/animate.py +++ b/spatialmath/base/animate.py @@ -217,7 +217,7 @@ def update(frame, animation): if isinstance(frame, float): # passed a single transform, interpolate it T = smb.trinterp(start=self.start, end=self.end, s=frame) - elif isinstance(frame, NDArray): + elif isinstance(frame, np.ndarray): # type is SO3Array or SE3Array when Animate.trajectory is not None T = frame else: