A Python client for the Agave 3d volume renderer
Project description
agave_pyclient
A Python client for the AGAVE 3d volume renderer
Features
- Connects to AGAVE server and sends draw commands. Receives and saves rendered images.
Quick Start
You must have AGAVE installed. On command line, run:
agave --server &
For Linux headless operation, you need to tell the Qt library to use the offscreen platform plugin:
agave -platform offscreen --server &
from agave_pyclient import AgaveRenderer
# 1. connect to the AGAVE server
r = agave_pyclient.AgaveRenderer()
# 2. tell it what data to load
r.load_data("my_favorite.ome.tiff")
# 3. set some render settings (abbreviated list here)
r.set_resolution(681, 612)
r.background_color(0, 0, 0)
r.render_iterations(128)
r.set_primary_ray_step_size(4)
r.set_secondary_ray_step_size(4)
r.set_voxel_scale(0.270833, 0.270833, 0.53)
r.exposure(0.75)
r.density(28.7678)
# 4. give the output a name
r.session("output.png")
# 5. wait for render and then save output
r.redraw()
Installation
Stable Release: pip install agave_pyclient
Documentation
For full package documentation please visit allen-cell-animated.github.io/agave.
Development
See CONTRIBUTING.md for information related to developing the code.
The Four Commands You Need To Know
-
pip install -e .[dev]
This will install your package in editable mode with all the required development dependencies (i.e.
tox
). -
make build
This will run
tox
which will run all your tests in both Python 3.7 and Python 3.8 as well as linting your code. -
make clean
This will clean up various Python and build generated files so that you can ensure that you are working in a clean environment.
-
make docs
This will generate and launch a web browser to view the most up-to-date documentation for your Python package.
Allen Institute Software License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file agave_pyclient-1.7.2.tar.gz
.
File metadata
- Download URL: agave_pyclient-1.7.2.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94a2214170b8ed4dbcd14c92b2454fa057360f8e3b9f78d8d402474d94fb669e |
|
MD5 | f5594d006b0b176e733ef999c2d58ab5 |
|
BLAKE2b-256 | 5bd947ab36d3d361010e7405ff15994626afd9b7a6b8be73ecf7185585914024 |
File details
Details for the file agave_pyclient-1.7.2-py2.py3-none-any.whl
.
File metadata
- Download URL: agave_pyclient-1.7.2-py2.py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f166c954f2e302cb2e5a6e07824b873f8c7e15192078da30953238ad11f0b7fd |
|
MD5 | d87523b302ef9b9c34ed246ea5ed81c7 |
|
BLAKE2b-256 | 735383238e3207cb397304770d45ac6856816f06914d9cbe3128a8d04158decb |