Pyaccelerad
Pyaccelerad is a Python interface for Accelerad, designed to mimic the API of Pyradiance.
It wraps the Accelerad binaries (accelerad_rpict, accelerad_rtrace, etc.) allowing you to call them from Python.
Installation
pip install .
Requirements
Accelerad Binaries: You must have Accelerad installed.
By default, Pyaccelerad looks for binaries in:
C:\Program Files\Accelerad\bin
You can override this by setting the ACCELERAD_BIN environment variable to your Accelerad bin directory.
Usage
import pyaccelerad as pa
# Call accelerad_rpict
# Arguments are passed as flags.
# e.g. -ab 5 becomes ab=5
# Positional arguments are passed as a list.
# Example: accelerad_rpict -ab 5 -vf view.vf scene.oct
output_image_data = pa.rpict("scene.oct", ab=5, vf="view.vf")
# You can write the output to a file
with open("output.hdr", "wb") as f:
f.write(output_image_data)
Mapped Functions
The following functions are mapped to their Accelerad counterparts:
rpict->accelerad_rpictrtrace->accelerad_rtracercontrib->accelerad_rcontribrfluxmtx->accelerad_rfluxmtxgenBSDF->accelerad_genBSDF
Notes on Binaries
Accelerad binaries are compiled against specific CUDA versions. Ensure your installed Accelerad version matches your hardware and drivers. Pyaccelerad does not bundle these binaries; it relies on your local installation.
Metadata
Release files for pyaccelerad 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyaccelerad-0.1.1.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyaccelerad-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / pyaccelerad-0.1.1.tar.gz
| Download URL | pyaccelerad-0.1.1.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff71c18ec7daec612b2caf0aced69e0b4f90eb02bfdfac23f1b3ac2806976065
|
|
BLAKE2b-256 checksum How to use checksums |
54ced3ea2482a91dcac3d6b96f4274368c5484a5138af4ad4f5427734e20b5b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / pyaccelerad-0.1.1-py3-none-any.whl
| Download URL | pyaccelerad-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5988df188a9c0274f104ea45bf1415f115d19328ff1144831cba087772d6638
|
|
BLAKE2b-256 checksum How to use checksums |
922e818c7814930e6850f799d0ff8d8d5496ea6c5d3507c8dd8ec0ae740ab65d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|