Skip to main content

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 &
from agave_pyclient import AgaveRenderer

# 1. connect to the agave server
r = agave_pyclient.AgaveRenderer()
# 2. tell it what data to load
r.load_volume_from_file("my_favorite.ome.tiff", 0, 0)
# 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

  1. pip install -e .[dev]

    This will install your package in editable mode with all the required development dependencies (i.e. tox).

  2. 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.

  3. 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.

  4. 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


Download files

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

Source Distribution

agave_pyclient-1.0.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

agave_pyclient-1.0.0-py2.py3-none-any.whl (10.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file agave_pyclient-1.0.0.tar.gz.

File metadata

  • Download URL: agave_pyclient-1.0.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for agave_pyclient-1.0.0.tar.gz
Algorithm Hash digest
SHA256 742a2ec66b4a26244642ff39a0194dd0e0e147c1044ddd7a9e50972779595b0e
MD5 7418cff4597ea4f596a3f5e89e2e0da1
BLAKE2b-256 a52ca6fc0effb518e4ab7cd192d9026cace1137dbfef8d10da4ccdbae3f49d8e

See more details on using hashes here.

File details

Details for the file agave_pyclient-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: agave_pyclient-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for agave_pyclient-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 201a98517bff1cde58685f399eb1d03ef43dd53234dc91fd2d85f0d28735c406
MD5 2860ce39247dddca9d09bc40255dacb2
BLAKE2b-256 15d8405bf6f1a29442efed2bf8a89916681076684f3022d4646ba205e5960b90

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