I am developing a code under Ubuntu(64bit) with python using various libraries.
Once done, I need to generate an executable which shall be interfaced with
fortran program on account of further collaboration. The python executable
shall be used with windows(32bit).
So, I guess everytime my pytho
I shall provide with further details
Its about Mathematical modelling of a system. Fortran does one part and python
does the other part (which I am suppose to provide).
For a time interval tn --> t_n+1, fortran code generates some values, for which
my python code accepts it as an input. It i
import CoolProp.CoolProp as CPpy
import numpy as np
import time
len = 1000
rho = np.zeros(len)
t = np.zeros(len)
eta = np.zeros(len)
x = np.zeros(len)
def PyDir(p,h,hndl):
for i in range(1, len):
rho[i] = hndl.PropsSI("D","P",p[i],"H",h[i],"Water")
t[i] = hndl.PropsSI('T','P',
Unable to compile :
import numpy as np
cimport numpy as np
import math as m
DTYPE = np.float
ctypedef np.float_t DTYPE_t
def visc1(float t, float dcal):
cdef float h, tr, trinv, rhor
cdef float eta0, sumi, i, sumj, im1, jm1, eta
cdef np.ndarray vb = np.array([1.0, 0.940695, 0
NO the compilation isn't working...
The setup.py :
from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cythonize("visco.pyx")
)
--
https://mail.python.org/mailman/listinfo/python-list
An interesting observation :
Any simple program with just :
cimport numpy as np
doesnot compile.
--
https://mail.python.org/mailman/listinfo/python-list