Skip to content

Instantly share code, notes, and snippets.

@synapticarbors
Created September 19, 2016 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save synapticarbors/99270d9c90114948c325a16212b48353 to your computer and use it in GitHub Desktop.
Save synapticarbors/99270d9c90114948c325a16212b48353 to your computer and use it in GitHub Desktop.
Minimal Example that demonstrates Cython compilation bug introduced after 0.23
from tlib import *
from tlib cimport *
import numpy as np
cimport numpy as np
class A(object):
def main(self, np.int32_t ix):
return 0.0
import numpy as np
cimport numpy as np
cdef struct Y:
np.int8_t valid
char[2] source
np.int32_t ndate
np.int32_t jdate
np.float32_t[4] ltime
cdef struct YPAIR:
Y wq
Y tt
DEF _MAXR = 100
cdef enum:
MAXR = _MAXR
cdef Y *tw[MAXR]
cdef YPAIR pairs[MAXR]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment