Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
examples
pointprocesses
src
.gitignore
Cargo.toml
README.md
setup.py

README.md

Python package

Yes, this is matplotlib

High level API for pointprocesses as a Python library.

This is a work in progress, much of the core library's functionality hasn't been ported yet and panics are not handled well.

Installation

This will install the setuptools-rust package to use the convenient PyO3 bindings inside setuptools, if you don't already have it.

python setup.py install

On macOS, you might need to add the following to ~/.cargo/config, as per PyO3's README:

[target.x86_64-apple-darwin]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]

Check it works by importing it inside a Python terminal, outside of this directory, else Python will import the local pointprocesses module which isn't loaded with the library.

import numpy as np
import pointprocesses as pp

There are working examples in the pylib/examples/ directory.

You can’t perform that action at this time.