Permalink
Browse files

Fix a datatype declaration

Cython does not use strings for the dtype attribute of ndarrays
in declarations.
  • Loading branch information...
1 parent a9045f3 commit baf2a2d2902d81e5ec629f604336b7dc761876a2 @aeberspaecher aeberspaecher committed Feb 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/best-practices.rst
View
@@ -579,7 +579,7 @@ this Cython code:
double *mesh)
def mesh_exp(double r_min, double r_max, double a, int N):
- cdef ndarray[double, mode="c"] mesh = empty(N, dtype="double")
+ cdef ndarray[double, mode="c"] mesh = empty(N, dtype=double)
c_mesh_exp(&r_min, &r_max, &a, &N, &mesh[0])
return mesh

0 comments on commit baf2a2d

Please sign in to comment.