Object-oriented CIVET bindings for Python
Project description
pycivet
Object-oriented Python bindings for CIVET binaries like transform_objects
and mincreshape
.
Overview
pycivet
provides helper methods which lazily invoke CIVET binaries with object-oriented syntax.
Intermediate files are written to temporary locations and then unlinked immediately.
This Perl code snippet from marching_cubes.pl
can be expressed in Python as such:
from civet import MNI_DATAPATH
from civet.surface import ObjFile
starting_model = ObjFile(MNI_DATAPATH / 'surface-extraction' / 'white_model_320.obj')
starting_model.flip_x().slide_right().save('./output.obj')
Installation
It is recommended you install this package in a container image, e.g.
FROM docker.io/fnndsc/mni-conda-base:civet2.1.1-python3.10.2
RUN pip install pycivet
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
pycivet-0.0.1a7.tar.gz
(8.4 kB
view hashes)
Built Distribution
pycivet-0.0.1a7-py3-none-any.whl
(10.6 kB
view hashes)
Close
Hashes for pycivet-0.0.1a7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edb4d507c11359ea388965191e23175ae44be760e9065a3839967e6962711767 |
|
MD5 | 0c24fb51da0685c6de370d7dd80b547f |
|
BLAKE2b-256 | a61bfad5402d5642f7008cf92de62bc4bd05da9535d2367ac1e3956eddf8616c |