Skip to main content

CarnaPy

The aim of this package is to provide real-time 3D visualization in Python for specifically, but not limited to, biomedical data. The library is based on Carna.

See examples/kalinin2018.ipynb for an example.

Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge


Contents


1. Limitations

  • Only 8bit and 16bit volume data are supported at the moment.
  • DRR renderings are not exposed to Python yet.
  • Build process is currently limited to Linux-based systems.

2. Dependencies

Using the library requires the following dependencies:

  • numpy ≥ 1.16
  • EGL driver support
  • OpenGL 3.3
  • Python ≥ 3.7

The following dependencies must be satisfied for the build process:

In addition, the following dependencies are required to run the test suite:


3. Installation

The easiest way to install and use the library is to use one of the binary Conda packages:

conda install -c kostrykin carnapy

Conda packages are available for Python 3.7–3.9.


4. Build instructions

Assuming you are using a recent version of Ubuntu:

sudo apt-get -qq install libegl1-mesa-dev libboost-iostreams-dev

Create and activate a Conda environment to work in, then:

conda install -c conda-forge pybind11

Grab a recent version of Eigen, unpack it, and tell CMake where it is located:

wget https://gitlab.com/libeigen/eigen/-/archive/3.2.10/eigen-3.2.10.tar.gz
tar -vzxf eigen-3.2.10.tar.gz -C /tmp/
export CMAKE_PREFIX_PATH="/tmp/eigen-3.2.10:$CMAKE_PREFIX_PATH"

If you have not already, download, build, and install Carna:

git clone git@github.com:kostrykin/Carna.git build_carna
cd build_carna
sh linux_build.sh

Now it is time to build, package, and install CarnaPy:

cd ..
python setup.py build
python setup.py install

Metadata

Release files for CarnaPy 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CarnaPy 0.1.6
File Size Uploaded
CarnaPy-0.1.6.tar.gz 741.3 kB Details

Release files / CarnaPy-0.1.6.tar.gz

Download URL CarnaPy-0.1.6.tar.gz
Size 741.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3d252815bf48c575d9a6cf9e4614e32c2ff60ad466442056d9650a79fbc9f85d
BLAKE2b-256 checksum
How to use checksums
86aa0158674761f185934a892d367a408303158217cc423ab44398bdc62ed199
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.1.6 This release

1 release file

0.1.5

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.20

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.17

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page