devel > Gifti on a Python interactive environment
Showing 1-3 of 3 posts
Aug 19, 2008 12:08 PM | Benjamin Thyreau
Gifti on a Python interactive environment
Hi,
I thought some of you might be interested by some Python code i recently wrote to ease manipulation of Gifti arrays files. It's based on Erik Anderson excellent ctypes bindings, and add a superset of convenience methods to make them more useable for an Interactive Session point of view (such as the great IPython shell)
I tried to mimick Michael Hanke's excellent PyNifti library. To mirror this, i renamed my code "gifti.py" (same as "nifti.py"), which make use of pygiftiio.
The code is available at
https://code.launchpad.net/~nipy-develop...
and contains a few examples (see "source code" then the example*.py files). Most of the functions are supposed to be readily discoverable with the key on completion-enabled shells.
The current API is something i find easy to use for interactive usage, close to the PyNifti one and the Numpy one. Yet i'm open to any changes in the method names or other features if someone has interest in making this code more available.
Thanks
--
Benjamin Thyreau
I thought some of you might be interested by some Python code i recently wrote to ease manipulation of Gifti arrays files. It's based on Erik Anderson excellent ctypes bindings, and add a superset of convenience methods to make them more useable for an Interactive Session point of view (such as the great IPython shell)
I tried to mimick Michael Hanke's excellent PyNifti library. To mirror this, i renamed my code "gifti.py" (same as "nifti.py"), which make use of pygiftiio.
The code is available at
https://code.launchpad.net/~nipy-develop...
and contains a few examples (see "source code" then the example*.py files). Most of the functions are supposed to be readily discoverable with the key on completion-enabled shells.
The current API is something i find easy to use for interactive usage, close to the PyNifti one and the Numpy one. Yet i'm open to any changes in the method names or other features if someone has interest in making this code more available.
Thanks
--
Benjamin Thyreau
Aug 19, 2008 03:08 PM | Erik Anderson
RE: Gifti on a Python interactive environment
Hi Benjamin,
I have been playing around with your extended API for the Python bindings. I think they are quite nice. What I'm not sure about is whether they should be included in the "bare-bones" type distribution or whether it should be distributed as an additional set of files.
Erik
I have been playing around with your extended API for the Python bindings. I think they are quite nice. What I'm not sure about is whether they should be included in the "bare-bones" type distribution or whether it should be distributed as an additional set of files.
Erik
Aug 19, 2008 08:08 PM | Richard Reynolds
Gifti on a Python interactive environment
Hi Benjamin,
Those are really nice examples, thank you for sharing them!
- rick
Those are really nice examples, thank you for sharing them!
- rick
