Skip to content

Latest commit

 

History

History

pylib

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

The pointprocesses Python package

Yes, this is matplotlib

This crate provides a high-level Python API for the point_process crate.

This is a work in progress, much of the core library's functionality hasn't been ported yet.

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.