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.
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:
- Carna ≥ 3.1
- Eigen ≥ 3.0.5
- libboost-iostreams
- pybind11
- EGL development files
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| CarnaPy-0.1.6.tar.gz | 741.3 kB | Without provenance | Details for CarnaPy-0.1.6.tar.gz |
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
|
Security for CarnaPy 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.