Skip to main content

A Lean Persistent Homology Library for Python

Project description

PyPI version Build Status Build status codecov License: LGPL v3

Ripser.py

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.

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

ripser-0.2.7.tar.gz (70.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ripser-0.2.7-py3.5-win32.egg (69.8 kB view details)

Uploaded Egg

ripser-0.2.7-cp36-cp36m-macosx_10_12_x86_64.whl (63.4 kB view details)

Uploaded CPython 3.6mmacOS 10.12+ x86-64

ripser-0.2.7-cp35-cp35m-win32.whl (61.5 kB view details)

Uploaded CPython 3.5mWindows x86

File details

Details for the file ripser-0.2.7.tar.gz.

File metadata

  • Download URL: ripser-0.2.7.tar.gz
  • Upload date:
  • Size: 70.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for ripser-0.2.7.tar.gz
Algorithm Hash digest
SHA256 cd273fc33af2bbe520e2c5e37cb58ab3b4991db1d71cfe9c762492583cf6c052
MD5 a456f16455da498aa5ddf6ad50f1ceeb
BLAKE2b-256 aecf97ad2d6bde9ddac4e6f1359a66ba5c1aa50f4fec721506117249f3912420

See more details on using hashes here.

File details

Details for the file ripser-0.2.7-py3.5-win32.egg.

File metadata

  • Download URL: ripser-0.2.7-py3.5-win32.egg
  • Upload date:
  • Size: 69.8 kB
  • Tags: Egg
  • Uploaded using 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

File hashes

Hashes for ripser-0.2.7-py3.5-win32.egg
Algorithm Hash digest
SHA256 d65ff44a9474b61d083ba05d6bf692820cf0ac25316ea10f4c7e4a6548f83f4c
MD5 33102a3cdda92fa3f6c595da08ba5be8
BLAKE2b-256 310355322b95ab64caebdf1b1c0daa7de5a351c8cf984db7c5a636ffcb584385

See more details on using hashes here.

File details

Details for the file ripser-0.2.7-cp36-cp36m-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: ripser-0.2.7-cp36-cp36m-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 63.4 kB
  • Tags: CPython 3.6m, macOS 10.12+ x86-64
  • Uploaded using 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

File hashes

Hashes for ripser-0.2.7-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 89681e0ff2213d14e86344bfb6fe7abed39a4144ca534e3efec063dff32c0733
MD5 1d7298395f9f693a52a8ee7ffe1f5e3e
BLAKE2b-256 806531e02dfe2d9d4e0bd193535f434cfcaeb7f8a26cc69f1f00b8ca4c4c7a91

See more details on using hashes here.

File details

Details for the file ripser-0.2.7-cp35-cp35m-win32.whl.

File metadata

  • Download URL: ripser-0.2.7-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 61.5 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using 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

File hashes

Hashes for ripser-0.2.7-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d23148327fca5b9b0168aa5a4268a55b5872ffc775ed9ab6c54339e2df50e086
MD5 9080ddcd567ea2df5ba127cbe88db733
BLAKE2b-256 05a704c86fe1f34160ad8d634a2a7a9399da0353acc64c51dd70a46731ac7590

See more details on using hashes here.

Supported by

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