-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug with numpy 1.7.0 #373
Comments
The issue is because of fipy/meshes/gmshMesh.py@28de7a8107fb#L859. If >>> import numpy as np
>>> np.__version__
'1.7.0'
>>> np.concatenate(([1, 2, 3], []))
array([ 1., 2., 3.]) with >>> import numpy as np
>>> np.__version__
'1.6.1'
>>> np.concatenate(([1, 2, 3], []))
array([1, 2, 3]) The solution is to manually cast the (possibly empty) list of Trac comment by guyer on 03-19-2013 at 10:38 |
Pull request
Trac comment by guyer on 03-19-2013 at 13:16 |
Tests pass on Buildbot and in a virtualenv with numpy 1.7. Merged back to develop with [0c8a5a6/fipy]. Trac comment by wd15 on 03-20-2013 at 12:59 |
As reported [http://thread.gmane.org/gmane.comp.python.fipy/2963 on the list]:
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 :
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 !!!
Imported from trac ticket #539, created by guyer on 03-18-2013 at 11:32, last modified: 03-20-2013 at 15:51
The text was updated successfully, but these errors were encountered: