Skip to main content

No project description provided

Project description

Flower Crane

Flower Crane provides some utility functions for working with NumPy arrays.

  1. viterbi_decode - find the most likely path along a sequence of observations.
  2. compute_thermals
  3. apply_time_limit - apply a time limit to decide on base or excited state
  4. bearing_change_rate - calculate the change rate of the bearing
  5. arg_max_positive_diff - find two indices a, b with b > a which maximize arr[b] - arr[a]
  6. find_meeting - find indices in which four dimensional lines are close to each other
  7. filter - find and replace outliers in array by comparing with running avg

Develop

First, create a new virtual env and activate it

python -m venv .venv
source .venv/bin/activate

You can install the module locally with

maturin develop

Make sure to update the python type stub in flower_crane.pyi if you change the signature of a function. After you have placed your PyPi API-Token in your .pypirc file, you can publish your module with

maturin publish -r test

or

maturin publish -r pypi

Tests

python -m pytest
cargo test

Benches

To compare the performances of the different implementations, run

maturin build --release
pip install .
python -m py_flower_crane.benchratio

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

flower_crane-0.5.3.tar.gz (337.4 kB view hashes)

Uploaded Source

Built Distributions

flower_crane-0.5.3-pp310-pypy310_pp73-musllinux_1_2_x86_64.whl (440.2 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ x86-64

flower_crane-0.5.3-pp310-pypy310_pp73-musllinux_1_2_i686.whl (459.4 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ i686

flower_crane-0.5.3-pp310-pypy310_pp73-musllinux_1_2_armv7l.whl (537.0 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARMv7l

flower_crane-0.5.3-pp310-pypy310_pp73-musllinux_1_2_aarch64.whl (455.4 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARM64

flower_crane-0.5.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (272.2 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

flower_crane-0.5.3-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (330.4 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

flower_crane-0.5.3-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (311.9 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

flower_crane-0.5.3-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (281.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

flower_crane-0.5.3-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (279.2 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

flower_crane-0.5.3-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl (284.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

flower_crane-0.5.3-pp39-pypy39_pp73-musllinux_1_2_x86_64.whl (440.0 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ x86-64

flower_crane-0.5.3-pp39-pypy39_pp73-musllinux_1_2_i686.whl (459.4 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ i686

flower_crane-0.5.3-pp39-pypy39_pp73-musllinux_1_2_armv7l.whl (537.0 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARMv7l

flower_crane-0.5.3-pp39-pypy39_pp73-musllinux_1_2_aarch64.whl (455.4 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARM64

flower_crane-0.5.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (272.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

flower_crane-0.5.3-pp39-pypy39_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (330.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

flower_crane-0.5.3-pp39-pypy39_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (311.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

flower_crane-0.5.3-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (281.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

flower_crane-0.5.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (279.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

flower_crane-0.5.3-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl (284.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

flower_crane-0.5.3-pp38-pypy38_pp73-musllinux_1_2_x86_64.whl (440.0 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ x86-64

flower_crane-0.5.3-pp38-pypy38_pp73-musllinux_1_2_i686.whl (459.0 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ i686

flower_crane-0.5.3-pp38-pypy38_pp73-musllinux_1_2_armv7l.whl (536.9 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARMv7l

flower_crane-0.5.3-pp38-pypy38_pp73-musllinux_1_2_aarch64.whl (455.3 kB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARM64

flower_crane-0.5.3-pp38-pypy38_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (331.0 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

flower_crane-0.5.3-pp38-pypy38_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (312.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

flower_crane-0.5.3-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (281.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

flower_crane-0.5.3-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (279.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

flower_crane-0.5.3-cp312-none-win_amd64.whl (136.9 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

flower_crane-0.5.3-cp312-none-win32.whl (129.1 kB view hashes)

Uploaded CPython 3.12 Windows x86

flower_crane-0.5.3-cp312-cp312-musllinux_1_2_x86_64.whl (438.9 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

flower_crane-0.5.3-cp312-cp312-musllinux_1_2_i686.whl (458.8 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ i686

flower_crane-0.5.3-cp312-cp312-musllinux_1_2_armv7l.whl (536.6 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ ARMv7l

flower_crane-0.5.3-cp312-cp312-musllinux_1_2_aarch64.whl (454.3 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ ARM64

flower_crane-0.5.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (271.9 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

flower_crane-0.5.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl (320.9 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ s390x

flower_crane-0.5.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (311.5 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ppc64le

flower_crane-0.5.3-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (280.3 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARMv7l

flower_crane-0.5.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (278.8 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

flower_crane-0.5.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl (284.3 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.5+ i686

flower_crane-0.5.3-cp312-cp312-macosx_11_0_arm64.whl (235.6 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

flower_crane-0.5.3-cp312-cp312-macosx_10_12_x86_64.whl (238.3 kB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

flower_crane-0.5.3-cp311-none-win_amd64.whl (136.0 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

flower_crane-0.5.3-cp311-none-win32.whl (129.0 kB view hashes)

Uploaded CPython 3.11 Windows x86

flower_crane-0.5.3-cp311-cp311-musllinux_1_2_x86_64.whl (439.7 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

flower_crane-0.5.3-cp311-cp311-musllinux_1_2_i686.whl (458.4 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ i686

flower_crane-0.5.3-cp311-cp311-musllinux_1_2_armv7l.whl (536.4 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ ARMv7l

flower_crane-0.5.3-cp311-cp311-musllinux_1_2_aarch64.whl (454.7 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ ARM64

flower_crane-0.5.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (272.8 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

flower_crane-0.5.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl (332.5 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ s390x

flower_crane-0.5.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (312.7 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ppc64le

flower_crane-0.5.3-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (281.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARMv7l

flower_crane-0.5.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (279.6 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

flower_crane-0.5.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl (284.8 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.5+ i686

flower_crane-0.5.3-cp311-cp311-macosx_11_0_arm64.whl (236.3 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

flower_crane-0.5.3-cp311-cp311-macosx_10_12_x86_64.whl (239.4 kB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

flower_crane-0.5.3-cp310-none-win_amd64.whl (136.0 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

flower_crane-0.5.3-cp310-none-win32.whl (129.0 kB view hashes)

Uploaded CPython 3.10 Windows x86

flower_crane-0.5.3-cp310-cp310-musllinux_1_2_x86_64.whl (439.3 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

flower_crane-0.5.3-cp310-cp310-musllinux_1_2_i686.whl (458.4 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ i686

flower_crane-0.5.3-cp310-cp310-musllinux_1_2_armv7l.whl (536.4 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ ARMv7l

flower_crane-0.5.3-cp310-cp310-musllinux_1_2_aarch64.whl (454.4 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ ARM64

flower_crane-0.5.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (272.6 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

flower_crane-0.5.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl (332.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ s390x

flower_crane-0.5.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (312.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ppc64le

flower_crane-0.5.3-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (281.2 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARMv7l

flower_crane-0.5.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (279.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

flower_crane-0.5.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl (284.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ i686

flower_crane-0.5.3-cp310-cp310-macosx_11_0_arm64.whl (236.2 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

flower_crane-0.5.3-cp39-none-win_amd64.whl (135.8 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

flower_crane-0.5.3-cp39-none-win32.whl (129.0 kB view hashes)

Uploaded CPython 3.9 Windows x86

flower_crane-0.5.3-cp39-cp39-musllinux_1_2_x86_64.whl (439.4 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

flower_crane-0.5.3-cp39-cp39-musllinux_1_2_i686.whl (458.3 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ i686

flower_crane-0.5.3-cp39-cp39-musllinux_1_2_armv7l.whl (536.3 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ ARMv7l

flower_crane-0.5.3-cp39-cp39-musllinux_1_2_aarch64.whl (454.5 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ ARM64

flower_crane-0.5.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (272.6 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

flower_crane-0.5.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl (332.3 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ s390x

flower_crane-0.5.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (312.2 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ppc64le

flower_crane-0.5.3-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (281.3 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARMv7l

flower_crane-0.5.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (279.6 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

flower_crane-0.5.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl (284.7 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ i686

flower_crane-0.5.3-cp39-cp39-macosx_11_0_arm64.whl (236.1 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

flower_crane-0.5.3-cp38-none-win_amd64.whl (135.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

flower_crane-0.5.3-cp38-none-win32.whl (129.1 kB view hashes)

Uploaded CPython 3.8 Windows x86

flower_crane-0.5.3-cp38-cp38-musllinux_1_2_x86_64.whl (439.1 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ x86-64

flower_crane-0.5.3-cp38-cp38-musllinux_1_2_i686.whl (458.0 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ i686

flower_crane-0.5.3-cp38-cp38-musllinux_1_2_armv7l.whl (535.8 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ ARMv7l

flower_crane-0.5.3-cp38-cp38-musllinux_1_2_aarch64.whl (454.1 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ ARM64

flower_crane-0.5.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (272.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

flower_crane-0.5.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl (332.1 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ s390x

flower_crane-0.5.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (312.4 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ppc64le

flower_crane-0.5.3-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (280.6 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARMv7l

flower_crane-0.5.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (279.8 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

flower_crane-0.5.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl (284.6 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ i686

Supported by

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