healpy/healpy — Issue #23: cannot compile query_disc with cython 0.13
Author: zonca
Created: 2011-12-11 08:06:24+00:00
State: open

I got an error trying to compile the new cython query_disc with cython 0.13, while it worked fine with 0.15, error log below. Should we write on the INSTALL file that we require a minimum version of cython?

cythoning healpy/src/_query_disc.pyx to healpy/src/_query_disc.cpp

Error converting Pyrex file to C:
------------------------------------------------------------
...
else:
scheme = RING
cdef T_Healpix_Base[int64] hb = T_Healpix_Base[int64](nside, scheme, SET_NSIDE)
cdef rangeset[int64] pixset
cdef bool inc = inclusive
hb.query_disc(pointing(v), radius, inc, pixset)
^
------------------------------------------------------------

/home/zonca/software/healpy/healpy/src/_query_disc.pyx:142:50: Cannot assign type 'rangeset' to 'rangeset &'

Error converting Pyrex file to C:
------------------------------------------------------------
...
else:
scheme = RING
cdef T_Healpix_Base[int64] hb = T_Healpix_Base[int64](nside, scheme, SET_NSIDE)
# Call query_polygon
cdef rangeset[int64] pixset
hb.query_polygon(vert, inclusive, pixset)
^
------------------------------------------------------------

/home/zonca/software/healpy/healpy/src/_query_disc.pyx:189:44: Cannot assign type 'rangeset' to 'rangeset &'

Error converting Pyrex file to C:
------------------------------------------------------------
...
else:
scheme = RING
cdef T_Healpix_Base[int64] hb = T_Healpix_Base[int64](nside, scheme, SET_NSIDE)
# Call query_polygon
cdef rangeset[int64] pixset
hb.query_strip(theta1, theta2, inclusive, pixset)
^
------------------------------------------------------------