Skip to main content

cbf with jax

Project description

cbfax

A JAX library to compute control barrier functions related functionality

Install

Requires the dynamaxsys library

pip install git+https://github.com/UW-CTRL/dynamaxsys.git
pip install git+https://github.com/UW-CTRL/cbfax.git

For editable mode:

git clone https://github.com/UW-CTRL/cbfax.git
cd cbfax
pip install -e .

Pre-commit (Ruff Formatting)

Install pre-commit and set up the git hook:

pip install pre-commit
pre-commit install

Run on all files:

pre-commit run --all-files

Automated Versioning

This repo now uses setuptools-scm, so package versions are derived from Git tags. Packaging and version metadata are managed in pyproject.toml. No manual version= edits are needed.

Create a release tag:

git tag v0.0.2
git push origin v0.0.2

Build with the computed version:

python -m build

Notes:

  • Tagged commits build exactly that version (for example, v0.0.2).
  • Untagged commits get an automatic development version.

One-Command Releases

Use the Makefile helpers to create the next version tag automatically:

make release-next        # preview next patch tag (dry-run)
make release-patch       # create next patch tag locally
make release-minor       # create next minor tag locally
make release-major       # create next major tag locally

Create and push in one command:

make release-patch-push
make release-minor-push
make release-major-push

Then build:

make build

TODOs

  • tidy install instructions
  • tidy plotting functionality
  • remove dynamics.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cbfax-0.2.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cbfax-0.2.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file cbfax-0.2.1.tar.gz.

File metadata

  • Download URL: cbfax-0.2.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for cbfax-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a09a8848a92becb645db8d37d209829954e86de064333a14d6adec28714661aa
MD5 e04fd8448b02d552240675df43c18303
BLAKE2b-256 70b78d34b8475fb96d530b0df4797b599cc248e61b8cb6e68075d45c9b28cda5

See more details on using hashes here.

File details

Details for the file cbfax-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: cbfax-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for cbfax-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8550638147466cf14c3cddb58c2b6ccb01edf804d9bc4ca57e09b0015cd041d
MD5 ae3e07284d06343a9d95b4792a7dec5c
BLAKE2b-256 c7d07a8ca6a3254314c9fc769ef77166ca1a2c7b892f3f68d5b625f1f01eb7cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page