Skip to main content

PyPI version Build Status Build status codecov License: LGPL v3

Ripser

Ripser.py is a renovated Python implementation of the Ripser package. We provide a slim interface for computing persistence cohomology of sparse and dense data sets, visualizing persistence diagrams, computing lowerstar filtrations on images, and computing representative cochains.

To aid your use of the package, we've put together a large set of notebooks that demonstrate many of the features available. Complete documentation about the package can be found at ripser.scikit-tda.org.

Through extensive testing and continuous integration, Ripser.py is easy to install on Mac, Linux, and Windows platforms.

If you're looking for the original C++ library, you can find it at Ripser/ripser.

Setup

Installation requires Cython, but other than that, it is available on all platforms (if you are having trouble installing, please let us know!)

pip install Cython
pip install Ripser

Usage

The interface is as simple as can be:

import numpy as np
from ripser import ripser, plot_dgms

data = np.random.random((100,2))
diagrams = ripser(data)['dgms']
plot_dgms(diagrams)

We also supply a Scikit-learn transformer style object if you would prefer to use that:

import numpy as np
from ripser import Rips

rips = Rips()
data = np.random.random((100,2))
diagrams = rips.fit_transform(data)['dgms']
rips.plot(diagrams)

License

Ripser.py is available under an MIT license!

Contributions

We welcome all kinds of contributions! There are lots of opportunities for potential projects, so please get in touch if you would like to help out. Everything from code to notebooks to examples and documentation are all equally valuable so please don't feel you can't contribute. To contribute please fork the project make your changes and submit a pull request. We will do our best to work through any issues with you and get your code merged into the main branch.

Release files for ripser 0.2.6

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

Source distribution (sdist)

Source distribution for ripser 0.2.6
File Size Uploaded
ripser-0.2.6.tar.gz 70.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ripser 0.2.6
File Interpreter ABI Platform
ripser-0.2.6-cp36-cp36m-macosx_10_12_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.12+ x86-64 Details

Total release size: 133.8 kB

Release files / ripser-0.2.6.tar.gz

Download URL ripser-0.2.6.tar.gz
Size 70.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4ce71e3b3adba87ecbd986141249e088ac238e83b91c2dc5b8a06599c12bf3cd
BLAKE2b-256 checksum
How to use checksums
41958ebea463cfa3c734b0058e1a709f28f5958e84dbc5c3f3bda9dd1b6f2eb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

Release files / ripser-0.2.6-cp36-cp36m-macosx_10_12_x86_64.whl

Download URL ripser-0.2.6-cp36-cp36m-macosx_10_12_x86_64.whl
Size 63.4 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
88600a47008ec12a34fffabb29ee23a4cb0302b805e4ea46e74042c50be1cbe6
BLAKE2b-256 checksum
How to use checksums
59caca947b5ace04a2255ba371635b588caa6b290f8ee7f6391631fc18fd69fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4

Release history Release notifications | RSS feed

0.6.9

21 release files

0.6.7

5 release files

0.6.5

4 release files

0.6.4

11 release files

0.6.1

11 release files

0.5.4

9 release files

0.5.3

9 release files

0.5.2

9 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

10 release files

0.3.0

10 release files

0.2.7

4 release files

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

10 release files

0.2.3

1 release file

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

1 release file

0.1.4

1 release file

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