Skip to main content

BiSPy : Bivariate Signal Processing with Python

docs-page PyPI version Tests

BiSPy is an open-source python framework for processing bivariate signals. It supports our papers on time-frequency analysis [1], spectral analysis [2] and linear time-invariant filtering [3] of bivariate signals.

[1] Julien Flamant, Nicolas Le Bihan, Pierre Chainais: “Time-frequency analysis of bivariate signals”, Applied and Computational Harmonic Analysis, 2017; arXiv:1609.0246, doi:10.1016/j.acha.2017.05.007

[2] Julien Flamant, Nicolas Le Bihan, Pierre Chainais: “Spectral analysis of stationary random bivariate signals”, 2017, IEEE Transactions on Signal Processing; arXiv:1703.06417, doi:10.1109/TSP.2017.2736494

[3] Julien Flamant, Pierre Chainais, Nicolas Le Bihan: “A complete framework for linear filtering of bivariate signals”, 2018; IEEE Transactions on Signal Processing; arXiv:1802.02469, doi:10.1109/TSP.2018.2855659

These papers contains theoretical results and several applications that can be reproduced with this toolbox.

This python toolbox is currently under development and is hosted on GitHub. If you encounter a bug or something unexpected please let me know by raising an issue on the project page.

Install from PyPi

Because of a name conflict, the package is published on PyPI as bispy-polar. To install it, type

pip install bispy-polar

or, in a uv project, uv add bispy-polar. Dependencies are installed automatically (see below).

To get started, simply use

import bispy as bsp

Requirements

BiSPy works with Python 3.10+.

Dependencies:

numpy-quaternion adds quaternion dtype support to numpy. Implementation by [moble]. Since this python toolbox relies extensively on this module, you can check out first the nice introduction here.

License

This software is distributed under the MIT License.

Cite this work

If you use this package for your own work, please consider citing it with this piece of BibTeX:

@misc{BiSPy,
    title =   {{BiSPy: an Open-Source Python project for processing bivariate signals}},
    author =  {Julien Flamant},
    year =    {2018},
    url =     {https://github.com/jflamant/bispy/},
    howpublished = {Online at: \url{github.com/jflamant/bispy/}},
    note =    {Code at https://github.com/jflamant/bispy/, documentation at https://bispy.readthedocs.io/}
}

Development

The project is managed with uv. The file uv.lock pins the exact versions of every dependency used for development and CI.

git clone https://github.com/jflamant/bispy.git && cd bispy
uv sync                      # create .venv with bispy and all dev tools
uv run pytest                # run the test suite
uv run ruff check            # lint
uv run sphinx-build -b html docs docs/_build/html   # build the docs

The test suite contains three kinds of tests:

  • Property tests check mathematical identities (round trips, Parseval, symmetries).
  • Snapshot tests compare outputs with reference values stored in tests/<module>/*.npz. After an intentional change to numerical results, regenerate them with uv run pytest --force-regen, check that the change is the expected one, and commit the updated .npz files.
  • Known-bug tests are marked xfail; uv run pytest -rx lists them. Once a bug is fixed its test passes, and pytest reports a failure until the xfail marker is removed.

To make a release:

  1. Set the version with uv version X.Y.Z. This updates pyproject.toml and uv.lock.
  2. Commit, then tag vX.Y.Z.
  3. Publish a GitHub Release from that tag. CI tests the package, builds it and uploads it to PyPI.

Metadata

Release files for bispy-polar 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bispy-polar 0.10.0
File Size Uploaded Provenance Actions
bispy_polar-0.10.0.tar.gz 297.9 kB Without provenance Details for bispy_polar-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bispy-polar 0.10.0
File Interpreter ABI Platform Actions
bispy_polar-0.10.0-py3-none-any.whl Python 3 none any Details for bispy_polar-0.10.0-py3-none-any.whl

Total release size: 324.1 kB

Release files / bispy_polar-0.10.0.tar.gz

Download URL bispy_polar-0.10.0.tar.gz
Size 297.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8ca1850d177871f3dd49d27216173a14b9a20964a00fc2c2d8d3597a52df2279
BLAKE2b-256 checksum
How to use checksums
7cfbf5384cb93ab3ab17e705e218ae446a5a7a8e66b26feb4cee981c647f5a30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / bispy_polar-0.10.0-py3-none-any.whl

Download URL bispy_polar-0.10.0-py3-none-any.whl
Size 26.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
103a7b8bcdcf0196ceb6e763c627ff55df534bfd89bba8d2153069f046177548
BLAKE2b-256 checksum
How to use checksums
4bd9dd56de1e8824fd17d5f0f904368763ac48636a11a721a6535779512406e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for bispy-polar 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page