Skip to main content

A package for generating evenly distributed points on a sphere

Project description

Fibonacci Lattice

pypi build docs

A simple small python package for generating uniform points on the sphere. This module provides to functions fiblat.cube_lattice and fiblat.sphere_lattice. Both functions take a dimension and a number of points and return numpy arrays that are roughly evenly spaced in either the [0, 1] hypercube or the unit hypersphere.

Installation

pip install fiblat

Usage

from fiblat import sphere_lattice, cube_lattice

cube = cube_lattice(3, 100)
sphere = sphere_lattice(3, 100)

Development

uv run ruff format --check
uv run ruff check
uv run pyright
uv run pytest

Publishing

rm -rf dist
uv build
uv publish --username __token__

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

fiblat-0.7.1.tar.gz (50.7 kB view details)

Uploaded Source

Built Distribution

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

fiblat-0.7.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file fiblat-0.7.1.tar.gz.

File metadata

  • Download URL: fiblat-0.7.1.tar.gz
  • Upload date:
  • Size: 50.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fiblat-0.7.1.tar.gz
Algorithm Hash digest
SHA256 420c73a5ddae15e5d2f13a109adcb53cf533acdbe9bf18aec7d27699b5d3e475
MD5 1d0cab970f0370a9897f530c2f4a5b8b
BLAKE2b-256 632979ad84862e3b9088001bb8d3df78c53cdaf6d314fdb2eaa56f5d19ea44ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for fiblat-0.7.1.tar.gz:

Publisher: release.yml on hafaio/fibonacci_lattice

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

File details

Details for the file fiblat-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: fiblat-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fiblat-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4192a09f928e27f42e699e1e6374b5b8299dabd8e1c8602e565535625c76621d
MD5 43a303694b06e17a36466f2c787633f7
BLAKE2b-256 d6e5c4c8b763e0b067f350490ab9dda96aa33fd189fbaaf9e9e7582b0e2d678d

See more details on using hashes here.

Provenance

The following attestation bundles were made for fiblat-0.7.1-py3-none-any.whl:

Publisher: release.yml on hafaio/fibonacci_lattice

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