Call a library uploaded in PiCloud

19 views
Skip to first unread message

tao hong

unread,
Mar 27, 2012, 6:00:05 PM3/27/12
to pic...@googlegroups.com

I have some basic questions of calling a Fortran model from GAE.

I uploaded a Fortran77 code to an test Environment, and then compiled it to a .so file using f2py commend. In the following steps, I will need to send input values which come from user inputs by filling a Django powered form on a GAE hosted website. What confused me is that:

  1. Since I have already uploaded the complied file to PiCloud, do I still need to publish the library (function?)? If so, how should I do it (import the uploaded library then publish)?

  2. How do I execute the function (do the calculation)? For a python function, I can use something like:

    "response_val = urlfetch.fetch(url=url_val, method=urlfetch.GET, headers=http_headers) output_val = json.loads(response_val.content)['result']"

However, there is no "_env=environ_name" model in fetch, so any suggestion?

Thanks in advance and any suggestion is welcomed!

Reply all
Reply to author
Forward
0 new messages