Skip to main content

A package for generating evenly distributed points on a sphere

Project description

Fibonacci Lattice

pypi build

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

  • setup: poetry install
  • tests: poetry run pytest

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.5.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

fiblat-0.5.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fiblat-0.5.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.9 Darwin/23.4.0

File hashes

Hashes for fiblat-0.5.0.tar.gz
Algorithm Hash digest
SHA256 80c0a50c02f86d2b57d1ee1030e7f30355539d34ae67a8a11884cc0760ce4322
MD5 134b07e6387b9476af8d1fcbf9916f21
BLAKE2b-256 01834e1a3e5acbbf659dea9591eb5be32d6503c8249a9578bdf0e1aec931daf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fiblat-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.9 Darwin/23.4.0

File hashes

Hashes for fiblat-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3edd97319178d458acebb26ef8f2c3b7c294d9fa4f2d756ef36f55379e694c98
MD5 f061c6d123ec5606ee31f099893623c9
BLAKE2b-256 a789ed4b2c4b80cee3d6e878159b1f4de5e73369053a540d9febdc2db72500f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page