diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 045f896..3a2f661 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,13 +5,17 @@ on: branches: master pull_request: branches: master +# cancels prior builds for this workflow when new commit is pushed +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest strategy: matrix: dependency-set: ["-old", ""] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] exclude: - dependency-set: "-old" python-version: "3.9" @@ -21,34 +25,36 @@ jobs: python-version: "3.11" - dependency-set: "-old" python-version: "3.12" + - dependency-set: "-old" + python-version: "3.13" name: test steps: - uses: actions/checkout@v4 - - name: install mamba - uses: mamba-org/provision-with-micromamba@main + - name: Setup Conda environment + uses: conda-incubator/setup-miniconda@v3 with: + auto-update-conda: true + python-version: ${{ matrix.python-version }} + channels: conda-forge environment-file: conda/bicycleparameters-dev${{ matrix.dependency-set }}.yml environment-name: bicycleparameters-dev${{ matrix.dependency-set }} - cache-env: true - extra-specs: | - python=${{ matrix.python-version }} - name: run tests shell: bash -l {0} run: | - micromamba info - micromamba list + conda info + conda list python -c "import bicycleparameters" py.test --doctest-modules bicycleparameters/ - name: build documentation shell: bash -l {0} run: | - micromamba info - micromamba list + conda info + conda list cd docs make html - name: test installation shell: bash -l {0} run: | - micromamba info - micromamba list + conda info python setup.py install + conda list diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 22214c7..d6a8b60 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,25 @@ Release Notes ============= +1.2.0 +----- + +- Support Python 3.13. +- Revert to ``unumpy.matrix`` in mass center and inertia calculations. +- Updated the raw data mat file loading to work with current Python versions. +- Support raw data pendulum measurement files with time as an array as well as + a fixed sample rate (as before). +- Remove the unnecessary ``__new__`` method from ``Bicycle``. +- Added options to show stable ranges and to hide zero eigenvalues in the + ``Model`` eigenvalues parts plot. +- Skip data truncation on raw pendulum time series that have the explicit time + array (this is a hack for the Balanceassistv1 data to have valid handlebar + inertia). +- Modernized some internal plotting code. +- Added measured and calculated parameter data for the Balanceassistv1 bike we + measured in the summer of 2024. This is a Gazelle Grenoble C8 HMB electric + bicycle with a custom headtube with a steering motor. + 1.1.1 ----- diff --git a/RELEASE.rst b/RELEASE.rst index 2ab2e68..189a872 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -2,11 +2,11 @@ These are the instructions for updating the package. 1. Merge all commits from changes. 2. Update the version info in the README -3. Update the version number in bicycleparameters.__init__.py +3. Update the version number in bicycleparameters/version.py 4. Update the version number in docs/conf.py. 5. Make sure the docs build. 6. Git tag for the new version. -7. python setup.py regsiter sdist upload +7. python setup.py register sdist upload 8. Upload the Documentation files. - cd docs/_build/html diff --git a/setup.py b/setup.py index 831c1ea..b7eabb6 100644 --- a/setup.py +++ b/setup.py @@ -50,6 +50,7 @@ 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Operating System :: OS Independent', 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Science/Research',