aminnj / yahist

1D and 2D histogram objects
10 stars 3 forks source link

lazy numba import #7

Closed aminnj closed 3 years ago

aminnj commented 3 years ago

Numba import gives some deprecation warnings and takes about a second. We only need it if Hist2D is called with a large enough array, so try to import it and JIT the histogramming functions only when the jit is actually needed

aminnj commented 3 years ago

fixed by https://github.com/aminnj/yahist/commit/6506b965050843eb534450b018f47447b2f8432d with yucky globals. Is there a better way?