/solpos

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

Primary LanguageRustMIT LicenseMIT

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