Skip to main content

Cálculo y visualización de β-esqueletos mediante fuerza bruta

Project description

PyPI version PyPI - Python Version Linux macOS Intel macOS ARM

Ohtli

Librería para el cálculo y visualización de β-esqueletos para el modelado de redes de conexión entre sitios arqueológicos.

Instalación

pip install ohtli

O en modo desarrollo:

git clone https://github.com/tu-usuario/ohtli.git
cd ohtli
pip install -e ".[dev]"

Uso básico

import numpy as np
from ohtli import adjacency_matrix, build_graph, plot_skeleton
from ohtli import relative_asymmetry, control_value, plot_metric_bars

coords = np.array([[0,0],[1,0],[2,0],[1,1]], dtype=float)
names  = ["A", "B", "C", "D"]

# Matriz de adyacencia
adj = adjacency_matrix(coords, beta=1.0)

# Grafo de NetworkX
G = build_graph(coords, beta=2.0, labels=names)

# Visualización
ax, G = plot_skeleton(coords, beta=1.0, labels=names)

# Métricas
ra = relative_asymmetry(G)
cv = control_value(G)
plot_metric_bars(ra, metric_name="Asimetría relativa")

Estructura del paquete

ohtli/
├── geometry.py   # cálculo de lunas y vecindades
├── skeleton.py   # matriz de adyacencia y construcción del grafo
├── metrics.py    # asimetría relativa y valor de control
└── viz.py        # visualizaciones

Referencia

Kirkpatrick, D. G. y Radke, J. D. (1985). A Framework for Computational Morphology. Computational Geometry, pp. 217-248.

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

ohtli-0.2.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

ohtli-0.2.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file ohtli-0.2.0.tar.gz.

File metadata

  • Download URL: ohtli-0.2.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for ohtli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 61105ef5779fb982016e8a1dae511ff25d4fccdf978f67f927d4ea386b6f6bee
MD5 1f300710a2e2d1e16cf73a26b5f114e9
BLAKE2b-256 939f3db4a9fce7715151910356226cdf82f6910c680f7ec2d01e2f530950bdef

See more details on using hashes here.

File details

Details for the file ohtli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ohtli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for ohtli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a9b20790a7b5bed78ea1f4a4359c009c6eeee9dae7a28db24fef81e19b7f428
MD5 b07853736e5e6ec8115b91649e17ff22
BLAKE2b-256 5246d95c2655f6ec157399b88255f83588f581ab3e0ebf3600008fc522854ac1

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