[Numpy-discussion] numerical gradient, Jacobian, and Hessian

2014-04-20 Thread Alan G Isaac
Awhile back there were good signs that SciPy would end up with a `diff` module: https://github.com/scipy/scipy/issues/2035 Is this still moving forward? It would certainly be nice for SciPy to have intuitive numerical gradients, Jacobians, and Hessians. The last two are I think missing

[Numpy-discussion] string replace

2014-04-20 Thread Siegfried Gonzi
Hi all I know this is not numpy related but a colleague insists the following is supposed to work. But it doesn't: == line_left = './erfo/restart.ST010.EN0001-EN0090.MMDDhh' enafix = 'ST000.EN0001-EN0092' line_left = line_left.replace('STYYY.EN-EN', enafix) print

Re: [Numpy-discussion] string replace

2014-04-20 Thread Robert Kern
On Sun, Apr 20, 2014 at 4:25 PM, Siegfried Gonzi siegfried.go...@ed.ac.uk wrote: Hi all I know this is not numpy related but a colleague insists the following is supposed to work. But it doesn't: == line_left = './erfo/restart.ST010.EN0001-EN0090.MMDDhh' enafix = 'ST000.EN0001-EN0092'