Skip to content

Rust implementation of the Solar Position Algorithm (SPA) with Python bindings

License

Notifications You must be signed in to change notification settings

cedricleroy/solpos

Repository files navigation

solpos

Solar Position Algorithm (NREL SPA) implemented in Rust, with Python bindings.

Setup & Installation

Prerequisites

  1. Rust
  2. Python 3.10
  3. Poetry
  4. Maturin
  5. A Python virtual environment

Steps

  1. Clone the repository:
git clone https://github.com/username/solpos.git
cd solpos
  1. Setup your Python virtual environment:
python3 -m venv venv
source venv/bin/activate
  1. Install the project dependencies using Poetry:
poetry install
  1. To build the project, run:
maturin develop
  1. To run the Rust tests:
cargo test
  1. To run the Python tests:
pytest
  1. To run the Rust benchmarks:
cargo bench

About

Rust implementation of the Solar Position Algorithm (SPA) with Python bindings

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages