A package for generating evenly distributed points on a sphere
Project description
Fibonacci Lattice
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
Release history Release notifications | RSS feed
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.1.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file fiblat-0.3.1.tar.gz
.
File metadata
- Download URL: fiblat-0.3.1.tar.gz
- Upload date:
- Size: 4.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3566df4a55a011f747c45963f4ab74ca5ce7ce28cbf2b95cc229a08a33b1d323 |
|
MD5 | 2d96b4080a7d8071a8ff87a1892390a8 |
|
BLAKE2b-256 | 86386d4f58b7c4eb5203891cf3b669f85eec05cd3fecb37d3acd7a06c0ca3edf |
File details
Details for the file fiblat-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: fiblat-0.3.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a5a0d2893a8d61730bdb17b605741e48479ec1a5655a5168aa8b75dcb3dc9b8 |
|
MD5 | a4ac051ef5c182a46a28f896fe18f14f |
|
BLAKE2b-256 | 146bb935179dc166c2ce9a4d7098c52be38949e1bc22b438fb92673d07532599 |