Python wrapper of the KLB file format, a high-performance file format for up to 5-dimensional arrays. For more details, see https://bitbucket.org/fernandoamat/keller-lab-block-filetype
pip install git+https://github.com/bhoeckendorf/pyklb.git@skbuild
Dependencies
- NumPy
- Cython
- C compiler, see this link if compiling for Windows with MSVC
- KLB main library, precompiled binaries (64-bit only) are available for Linux (>= Ubuntu LTS), Windows, and Mac, and will be automatically downloaded, if appropriate. Other platforms require building the main library separately from source. KLB's main library is self-contained and uses CMake. Afterwards, place the binary in
./build/lib/
(relative to the top level folder of this repository). On Windows, additionally place theklb.lib
in the same folder.
The recommended build and installation method is via Wheels. If it isn't already installed, you have to add the wheel
package by running pip install wheel
. You can then build pyklb by executing python setup.py bdist_wheel
from the top level folder of this repository. This should create a dist
subfolder that contains the resulting wheel. To install, run pip install /path/to/wheel.whl
. Conversely, you can uninstall pyklb using pip uninstall pyklb
.