GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing plantsimulationlab.github.io โ PyHelios: PyHelios
Loading...
Searching...
No Matches
PyHelios Getting StartedPyHelios is the Python API for Helios, an open-source framework for building virtual plants, canopies, and landscapes, then simulating the physics and physiology around them. Grow plants with a procedural plant model, then compute how they intercept light, photosynthesize, transpire, exchange heat, and appear to sensors, from a single leaf to a whole field.
๐ Complete Documentation ยท Helios C++ documentation PyHelios is under active development, and not all Helios functionality is available from Python yet. Please report problems or missing features in the issue tracker. Quick StartInstallationRequirements: Python 3.10 or later (pre-built wheels available for Python 3.10โ3.14) Easy Install (Recommended): pip install pyhelios3d
This installs pre-built PyHelios with platform-appropriate plugins:
Linux system libraries: the visualizer links OpenGL, EGL and X11, which Linux wheels do not bundle (they are loaded from the system at runtime). Desktop distributions normally already have them; minimal container images such as apt-get update && apt-get install -y \
libgl1 libegl1 libsm6 libice6 libx11-6 libxext6
EGL ( Without these, PyHelios automatically selects the best execution mode:
Build from SourceIf you need to customize plugins or build from source: Building on WindowsPrerequisites:
# Clone repository
git clone --recursive https://github.com/PlantSimulationLab/PyHelios.git
cd PyHelios/
# Build native libraries (optional - pre-built binaries included)
./build_scripts/build_helios
# Install PyHelios dependencies
pip install -e .
Building on macOSPrerequisites:
# Install Xcode command line tools
xcode-select --install
# Clone repository
git clone --recursive https://github.com/PlantSimulationLab/PyHelios.git
cd PyHelios/
# Install c++ dependencies and build native libraries
source helios-core/utilities/dependencies.sh
./build_scripts/build_helios
# Install PyHelios dependencies
pip install -e .
Building on Linux (Ubuntu/Debian)Prerequisites:
# Clone repository
git clone --recursive https://github.com/PlantSimulationLab/PyHelios.git
cd PyHelios/
# Install c++ dependencies and build native libraries
source helios-core/utilities/dependencies.sh
./build_scripts/build_helios
# Install PyHelios dependencies
pip install -e .
GPU Features Setup (Optional)PyHelios plugins have three types of GPU support: GPU-Required Plugins:
GPU-Optional Plugins (work with or without GPU):
CPU-Only Plugins (no GPU needed):
For GPU Acceleration (optional), ensure you have at least one:
The radiation plugin auto-detects the best available backend at runtime (OptiX 8 -> OptiX 6 -> Vulkan). Verification: vulkaninfo # Should show Vulkan device information
# OR for NVIDIA:
nvidia-smi # Should show GPU information
Testing GPU Features: from pyhelios import Context, RadiationModel, EnergyBalanceModel
context = Context()
# Test GPU-required plugin (radiation)
try:
radiation = RadiationModel(context)
print("GPU radiation modeling available!")
except RuntimeError as e:
print(f"Radiation requires GPU: {e}")
# Test GPU-optional plugin (energybalance)
with EnergyBalanceModel(context) as energy:
if energy.isGPUAccelerationEnabled():
print("EnergyBalance using GPU acceleration")
else:
print("EnergyBalance using CPU mode (OpenMP or serial)")
First Examplefrom pyhelios import Context
# Create simulation context
context = Context()
# Add a patch primitive
center = vec3(2, 3, 4)
size = vec2(1, 1)
color = RGBcolor(0.25, 0.25, 0.25)
patch_uuid = context.addPatch(center=center, size=size, color=color)
print(f"Created patch: {patch_uuid}")
Definition __init__.py:1 Documentation
Updating PyHeliosPyPI InstallationIf you installed via pip, simply upgrade to the latest version: pip install --upgrade pyhelios3d
Source InstallationIf you built PyHelios from source, update with the latest changes: # Update main repository and submodules recursively
git pull --recurse-submodules
# Alternative: Update main repo first, then submodules
git pull
git submodule update --init --recursive
# Rebuild native libraries after updates (recommended)
./build_scripts/build_helios --clean
# Reinstall PyHelios
pip install -e .
Important: Always use Quick Commands# Run the test suite
pytest
# Check plugin status
python -m pyhelios.plugins status
# Interactive plugin selection
./build_scripts/build_helios --interactive
Support
Note: This project is in active development. The API may change quickly - see | ||||||||||||
| You are visitor 01402792 โ GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร600. No cookies required. |