# Path: julia/julia_python.py
# def kernel(zr, zi, cr, ci, lim, cutoff):
# def julia_python_for_loops(cr, ci, N, bound=1.5, lim=1000., cutoff=1e6):
# def julia_python_numpy(cr, ci, N, bound=1.5, lim=4., cutoff=1e6):
#     X, Y = np.ogrid[-bound:bound:N*1j, -bound:bound:N*1j]


from julia import julia_python
from pythran import compile_pythrancode
from inspect import getsource
import re, imp

# grab imports
imports = 'import numpy as np'
exports = '''
#pythran export julia_python_for_loops(float, float, int, float, float, float)
'''
modname = 'julia_pythran'

# grab the source from the original functions
sources = map(getsource,
        (julia_python.julia_python_for_loops,

# Path: julia/julia_python.py
# def kernel(zr, zi, cr, ci, lim, cutoff):
# def julia_python_for_loops(cr, ci, N, bound=1.5, lim=1000., cutoff=1e6):
# def julia_python_numpy(cr, ci, N, bound=1.5, lim=4., cutoff=1e6):
#     X, Y = np.ogrid[-bound:bound:N*1j, -bound:bound:N*1j]


# Path: julia/julia_pythran.py
from julia import julia_python
from pythran import compile_pythrancode
from inspect import getsource
import re, imp


# grab imports
imports = 'import numpy as np'
exports = '''
#pythran export julia_python_for_loops(float, float, int, float, float, float)
'''
modname = 'julia_pythran'

# grab the source from the original functions
sources = map(getsource,
        (julia_python.julia_python_for_loops,

            julia_python.kernel,