Skip to main content

ringity package

Project description

DOI license version

ringity is a Python package to analyze various data structures with respect to their ring structure.

Notes

This package is still under construction!

Simple network example

Calculate ring score as described in [1]:

>>> import ringity as rng
>>> import networkx as nx
>>> G = nx.Graph()
>>> G.add_edges_from([(i%100,(i+1)%100) for i in range(100)])
>>> dgm = rng.diagram(G)
>>> dgm.ring_score()
1

[1]: Paper not available yet.

Simple point cloud example

Calculate ring score as described in [2]:

>>> import numpy as np
>>> import ringity as rng
>>> t = np.linspace(0, 2*np.pi, 100)
>>> X = np.array((np.cos(t),np.sin(t))).T
>>> rng.ring_score(X)
1

[2]: Paper not available yet.

Install

Install the latest version of ringity:

$ pip install ringity

Latest Changes

  • The persistent diagram class PersistenceDiagram has ring_score now as a method, not as a property. As a result, the function is now called via dgm.ring_score() insted of dgm.ring_score! (Notice the change in brackets) We appologize if this is breaking old code; such changes will be avoided in the future.

  • Integration of various ring-score “flavours”.

  • Extended usage for point clouds.

Bugs

Please report any bugs that you find here. Or, even better, fork the repository on GitHub and create a pull request. All inputs, suggestions and changes are more than welcome!

License

Released under the MIT License (see LICENSE.txt):

Copyright (c) 2019 Markus K. Youssef <mk.youssef@hotmail.com>

How to cite

If you want to cite this package, please use the DOI: 10.5281/ZENODO.4908927

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

ringity-0.2a8.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

ringity-0.2a8-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file ringity-0.2a8.tar.gz.

File metadata

  • Download URL: ringity-0.2a8.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5

File hashes

Hashes for ringity-0.2a8.tar.gz
Algorithm Hash digest
SHA256 84cc8072366b52dfb3a17225f379d05f73eb25341285bc7d1f98963698764390
MD5 87562bc8d333c0a8e06699643c47190d
BLAKE2b-256 013f975748b4048b74f951c7b97a68701f276b7df81fa73c9f0ed89dcc27657c

See more details on using hashes here.

File details

Details for the file ringity-0.2a8-py3-none-any.whl.

File metadata

  • Download URL: ringity-0.2a8-py3-none-any.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5

File hashes

Hashes for ringity-0.2a8-py3-none-any.whl
Algorithm Hash digest
SHA256 20b932c898d8175c00cd61e718a75dbf6b364dc671891adb48f0452cf7d76d86
MD5 0f8b23c733605003e242990118d6ab57
BLAKE2b-256 3b0a878a21e0cf82e7fb9c1f5862ad05ecffa3bc86ab0a8b6853c0f1901f5bfb

See more details on using hashes here.

Supported by

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