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 && poetry run pyre

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

Uploaded Source

Built Distribution

fiblat-0.3.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fiblat-0.3.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for fiblat-0.3.2.tar.gz
Algorithm Hash digest
SHA256 113945ab5521e78e2941581bd2cf0d55edf55b822e8100cc4494a026c07bfd41
MD5 a325b47a67221f7ba2dd5848a0d000e5
BLAKE2b-256 488e199212e01e5c8df82fc90452c4daf1340e76c35c3b02c5bebfd05d757fcd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fiblat-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for fiblat-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06e7a04cc7434a857e66092ca0a9bb986441105f46f627338e76afaec605a114
MD5 a7d1bc141aaa6a635c9877fd0ec8f7a8
BLAKE2b-256 042962c46e985b4cbf447f2568c731ed073d6bc5513846bd00dbda46eb460756

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