I'm trying to write an implementation of the amoeba function from
numerical recipes and need to be able to pass a function name and
parameter list to be called from within the amoeba function. Simply
passing the name as a string doesn't work since python doesn't know it
is a function and throws a
On Wed, 2010-10-20 at 09:46 -0400, Zachary Pincus wrote:
I'm trying to write an implementation of the amoeba function from
numerical recipes and need to be able to pass a function name and
parameter list to be called from within the amoeba function. Simply
passing the name as a string
On Wed, 2010-10-20 at 13:18 -0400, Alan G Isaac wrote:
On 10/20/2010 9:42 AM, Thomas Kirk Gamble wrote:
I'm trying to write an implementation of the amoeba function from
numerical recipes and need to be able to pass a function name and
parameter list to be called from within the amoeba
I need to convert numbers read from a text file to floating point. The
numbers are in the format 1.538D-06 (written by a FORTRAN application)
and have varying amounts of whitespace between them from line to line.
The function fromstring() deals with the whitespace just fine but
'dtype=float'
On Wed, 2010-09-29 at 16:36 +0200, David Froger wrote:
Did you try loadtxt? I try to output something in the format 1.538D-06
with Fortran in order to test reading it with loadtxt, but I always
get 1.538E-06. Where does the 'D' come from?
No, I didn't, but I will.
Preserving the 'D' isn't