Skip to main content

Calculates ring scores for various data structures

Project description

DOI License version

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

🚀 Quick Examples

Ring Score of Networks

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.pdiagram(G)   # constructs a persistence diagram from G
dgm.ring_score()        # -> 1

[1]: Paper not available yet.

Ring Score of Point Clouds

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

🐞 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

MIT — see LICENSE.

📚 How to cite

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.4a4.tar.gz (26.7 MB view details)

Uploaded Source

Built Distribution

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

ringity-0.4a4-py3-none-any.whl (150.2 kB view details)

Uploaded Python 3

File details

Details for the file ringity-0.4a4.tar.gz.

File metadata

  • Download URL: ringity-0.4a4.tar.gz
  • Upload date:
  • Size: 26.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ringity-0.4a4.tar.gz
Algorithm Hash digest
SHA256 e64ce7315c733a40244d77d96eb59e6fecaf371309a4461ef0b6aad7e828e55d
MD5 8a8df58d910e33b1936f9f7f59d04fc1
BLAKE2b-256 423488df6058f22bdd486347be86f14c053fae10eaf7e2ac3af896682293365a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ringity-0.4a4.tar.gz:

Publisher: release.yml on ClusterDuck123/ringity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ringity-0.4a4-py3-none-any.whl.

File metadata

  • Download URL: ringity-0.4a4-py3-none-any.whl
  • Upload date:
  • Size: 150.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ringity-0.4a4-py3-none-any.whl
Algorithm Hash digest
SHA256 31675728a08a996c2b86cf36a1dbd17d8a00149fcb68546feb8fdf663377d447
MD5 b839e46be406b32f029fdac1829f4f0a
BLAKE2b-256 45aa8f69c4c9937d2d540a4babeb676d4551e54020d66d0ef2d0288086b8ffdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for ringity-0.4a4-py3-none-any.whl:

Publisher: release.yml on ClusterDuck123/ringity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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