Skip to content

Commit

Permalink
Coerced sampling rate to float for Allan deviation operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Luque committed Oct 13, 2024
1 parent 85cb9c5 commit b78d56c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]
env:
PY_LATEST: "3.11"
PY_LATEST: "3.12"

steps:
- name: Checkout
Expand All @@ -34,7 +34,7 @@ jobs:
shell: Rscript {0}

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -54,7 +54,7 @@ jobs:
coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
if: matrix.python-version == env.PY_LATEST
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -69,7 +69,7 @@ jobs:
touch docs/build/html/.nojekyll
- name: Upload products
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if:
(matrix.python-version == env.PY_LATEST) &&
startsWith(github.ref, 'refs/tags')
Expand All @@ -94,7 +94,7 @@ jobs:
persist-credentials: false

- name: Download products
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist-pkg

Expand All @@ -117,7 +117,7 @@ jobs:

steps:
- name: Download products
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist-pkg

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Build Python package
runs-on: ubuntu-latest
env:
PY_LATEST: "3.11"
PY_LATEST: "3.12"

steps:
- uses: actions/checkout@v4
Expand All @@ -33,7 +33,7 @@ jobs:
shell: Rscript {0}

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PY_LATEST }}

Expand All @@ -56,7 +56,7 @@ jobs:
make -C docs/ html
- name: Upload products
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if:
(matrix.python-version == env.PY_LATEST) &&
startsWith(github.ref, 'refs/tags')
Expand All @@ -79,7 +79,7 @@ jobs:

steps:
- name: Download products
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist-pkg

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "Python interface to R package diveMove"
readme = "README.rst"
license = {file = "LICENSE"}
authors = [{name = "Sebastian Luque", email = "spluque@gmail.com"}]
requires-python = ">=3.9"
requires-python = ">=3.10"
dependencies = ["ahrs",
"allantools",
"bottleneck",
Expand Down
2 changes: 1 addition & 1 deletion skdiveMove/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@

__author__ = "Sebastian Luque <spluque@gmail.com>"
__license__ = "AGPLv3"
__version__ = "0.3.3"
__version__ = "0.3.4"
__all__ = ["TDR", "calibrate", "dump_config_template"]
2 changes: 1 addition & 1 deletion skdiveMove/imutools/imu.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def _allan_deviation(self, sensor, taus):
"""
sensor_obj = getattr(self, sensor)
sampling_rate = sensor_obj.attrs["sampling_rate"]
sampling_rate = float(sensor_obj.attrs["sampling_rate"])
sensor_std = preprocessing.scale(sensor_obj, with_std=False)

allan_l = []
Expand Down

0 comments on commit b78d56c

Please sign in to comment.