[Nipy-devel] AFNI code

Tim Leslie tim.leslie at gmail.com
Fri Jun 30 07:46:49 CDT 2006


On 6/30/06, Tim Leslie <tim.leslie at gmail.com> wrote:
> Hi All,
>
> The code in image/formats/afni/__init__.py all looks pretty broken in
> its current state. I was thinking of spending some time cleaning this
> up, but I thought I'd first check to see if this code is planned to
> become part of nipy, or if it's no longer needed, in which case I'll
> work on something else.

For lack of anything else to do before the soccer comes on I made a
start on this. I've managed to get it to the point where calling

    afni = AFNI("/home/timl/data/AFNI_data1/afni/anat+orig.HEAD")

doesn't crash, which seems like a good start for now. To get this to
go I had to include a readbrick() function in image.utils. I took the
function from

http://projects.scipy.org/neuroimaging/ni/browser/BrainSTAT/BrainSTAT/Utils/brickutils.py?rev=2

as this appears to be where the writebrick() function started life. I
made the required changes to bring it into line with numpy, but I
thought I'd double check here before adding this "stolen" code to SVN.
Is it cool to take code as required from the BrainSTAT project?

Cheers,

Tim Leslie

>
> Cheers,
>
> Tim Leslie
>


More information about the Nipy-devel mailing list