Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for 1.2.0. #115

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
19 changes: 19 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -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
-----

Expand Down
4 changes: 2 additions & 2 deletions RELEASE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading