Skip to main content

Python interface for Accelerad, mimicking Pyradiance.

Project description

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_rpict
  • rtrace -> accelerad_rtrace
  • rcontrib -> accelerad_rcontrib
  • rfluxmtx -> accelerad_rfluxmtx
  • genBSDF -> 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyaccelerad-0.1.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyaccelerad-0.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file pyaccelerad-0.1.1.tar.gz.

File metadata

  • Download URL: pyaccelerad-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for pyaccelerad-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ff71c18ec7daec612b2caf0aced69e0b4f90eb02bfdfac23f1b3ac2806976065
MD5 45cb9ae432878912f4b302ff34c933f3
BLAKE2b-256 54ced3ea2482a91dcac3d6b96f4274368c5484a5138af4ad4f5427734e20b5b8

See more details on using hashes here.

File details

Details for the file pyaccelerad-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyaccelerad-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for pyaccelerad-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5988df188a9c0274f104ea45bf1415f115d19328ff1144831cba087772d6638
MD5 8f2fad4471399297da6d07b383eb24ea
BLAKE2b-256 922e818c7814930e6850f799d0ff8d8d5496ea6c5d3507c8dd8ec0ae740ab65d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page