Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

A Python package for evaluating orbit commensurability using Delaunay tessellation.

Notifications You must be signed in to change notification settings

ilikecubesnstuff/orbit-tessellation

Repository files navigation

tessellation

PyPI - Version PyPI - Python Version tests pdm-managed pre-commit Ruff Code style: black Imports: isort

A Python package for evaluating orbit commensurability using Delaunay tessellation. This is used in the commensurability package to analyze galaxy potentials.

Installation

Install this package via pip:

python -m pip install orbit-tessellation

Usage

Use tessellation.Tessellation on your point array to perform the commensurability evaluation.

import numpy as np
from tessellation import Tessellation

# generate 100 random 2D points
points = np.random.normal(size=(100, 2))
tess = Tessellation(points)

This returns a tessellation object that contains info in its attributes. The .measure attribute gives the measure of the orbit (normalized to be in [0, 1)).

About

A Python package for evaluating orbit commensurability using Delaunay tessellation.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages