Hello,

I think I found a bug with numpy 1.7.0 and Fipy (latest git).
The best example is the circle diffusion problem in which I can't
initialize the viewer. I try to debug the problem and is seems to be
related to numpy.take for which indices should be integers. It
complains to cast from float64 to int64 !

The best workaround I found is to tweak the tools/numerix.py and
modifiy the following lines :

596: taken = a.take(indices.astype('int64'), axis=axis)   
601: taken = MA.take(a,MA.filled(indices,0).astype('int64'),axis=axis) 
620: taken = NUMERIX.take(a, indices.astype('int64'),axis=axis)
622: taken = MA.take(a, indices.astype('int64'),axis=axis)

I used Gentoo and all the python package are on the edge :
dev-python/numpy-1.7.0
dev-python/matplotlib-1.2.0-r2
sci-libs/scipy-0.11.0-r1


I hope it will help !!!


-- 
Philippe BAUCOUR
=========================================
Institut FEMTO-ST, Dept. ENERGIE

_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to