New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flower-crane

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flower-crane

  • 0.5.4
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc