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.0.tar.gz (52.1 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.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fiblat-0.7.0.tar.gz
  • Upload date:
  • Size: 52.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.28

File hashes

Hashes for fiblat-0.7.0.tar.gz
Algorithm Hash digest
SHA256 6330d61c98b9b6ea8dbe8c7121f9b75472574cbf7f0021c259d66878e76c2a02
MD5 525468faac8b52185e873341757faf15
BLAKE2b-256 177320eb7592e5be0eb9e65d0c17c46979b6123d10b37cfddc8eb6a64c8fadcd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fiblat-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.28

File hashes

Hashes for fiblat-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 859814517153717e71d7599d320707326c22081ff0e920c0999a7f2caa1f5d16
MD5 1f461a1ed59ad1a0b414fef0813457e1
BLAKE2b-256 e48d47e49f7a0c7659fc163a88a965720ffba270382fdcc8dae276237d79dbb0

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