Razibul Islam
2013-01-07 15:13:21 UTC
Dear f2py users...
I am creating a GUI for a fortran code. But I cannot compile the the code from my GUI.It cannot overwrite the existing python module. If I run the same code from the python console it overwrites the existing python module without any problem.I have used the following code which generates the some information to run the next program.
import numpy.f2py as f2py
fid = open('ellgen.f')
source = fid.read()
fid.close()
f2py.compile(source, modulename = 'ellgen')
Secondly, After running the program it just close the GUI or in case of ipython it quits ipython.
I would highly appreciate any suggestion in this regard.
Tamal
I am creating a GUI for a fortran code. But I cannot compile the the code from my GUI.It cannot overwrite the existing python module. If I run the same code from the python console it overwrites the existing python module without any problem.I have used the following code which generates the some information to run the next program.
import numpy.f2py as f2py
fid = open('ellgen.f')
source = fid.read()
fid.close()
f2py.compile(source, modulename = 'ellgen')
Secondly, After running the program it just close the GUI or in case of ipython it quits ipython.
I would highly appreciate any suggestion in this regard.
Tamal