[Nipy-devel] AFNI code
Tim Leslie
tim.leslie at gmail.com
Sun Jul 2 05:11:38 CDT 2006
On 7/2/06, Jonathan Taylor <jonathan.taylor at stanford.edu> wrote:
> Hi Tim,
>
> The array is a memmaped array on which I changed the byteorder manually
> -- if that helps.....
>
That does help a lot. I've managed ot recreate the bug in the
interpreter. I'm going to put together a minimal script to see if
Travis and the numpy guys can shed some light.
In the meantime, it seems that the bug only affects float32 (I need to
fully confirm this thought) based data. Is there some reason why this
code is float32 based (single precision) and not float64 based (double
precision). I had a quick look but couldn't find my way back to where
the data type is first specified.
Cheers,
Tim
> -- Jonathan
>
> Tim Leslie wrote:
>
> > On 7/1/06, Jonathan Taylor <jonathan.taylor at stanford.edu> wrote:
> >
> >>
> >> P.S. Do you know how to fix these exceptions for test_write{1,2} in
> >> test_nifti1.py? (Run test neuroimaging.image.formats to see the ones I
> >> mean).
> >>
> >
> > Hmm, I get the exceptions. I had a look at the code which does causes
> > it to freak out and it seems like the value of maxf is what's causing
> > the problem. If I manually set maxf to 0.0 in the numpy code, the
> > tests all pass without issues.
> >
> > What's strange though is that I can't recreate the bug by hand
> > crafting an array and calling nan_to_num on it. Perhaps it's related
> > to how the array is laid out in memory? That's a bit of a wild guess
> > though, I'm really not sure.
> >
> > Tim
>
>
> --
> ------------------------------------------------------------------------
> I'm part of the Team in Training: please support our efforts for the
> Leukemia and Lymphoma Society!
>
> http://www.active.com/donate/tntsvmb/tntsvmbJTaylor
>
> GO TEAM !!!
>
> ------------------------------------------------------------------------
> Jonathan Taylor Tel: 650.723.9230
> Dept. of Statistics Fax: 650.725.8977
> Sequoia Hall, 137 www-stat.stanford.edu/~jtaylo
> 390 Serra Mall
> Stanford, CA 94305
>
>
More information about the Nipy-devel
mailing list