Skip to content

hafaio/fibonacci_lattice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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__

About

python project for generating fibonacci lattices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages