[Numpy-discussion] hold parameters

2011-08-01 Thread Bevan Jenkins
Hello, I have a function that I fitting to a curve via scipy.optimize.leastsq. The function has 4 parameters and this is all working fine. For a site, I have a number of curves (n=10 in the example below). I would like to some of the parameters to be the best fit across all curves (best fit

[Numpy-discussion] np.ma.masked_invalid and precision

2010-10-31 Thread bevan jenkins
Hello, I am not sure if the following is a bug or not. I recently tried to set the print precision in numpy but it didn't seem to make a difference. It seems that the use of np.ma.masked_invalid results in arrays printing precision of 12 regardless of the default setting or any subsequent settin

Re: [Numpy-discussion] timeseries, the sandbox (was t imeseries - dates prior to 1970)

2010-06-21 Thread Bevan Jenkins
Pierre GM gmail.com> writes: > > I just pushed the weekend's changes, including a fix for your problem. > Now it should be possible to define an array of dates w/ a timestep different from 1: > >>> date_array(start_date=Date("T", "2010-06-21 00:00"), length=4, timestep=15) > DateArray([21-Jun

Re: [Numpy-discussion] timeseries - dates prior to 1970

2010-06-20 Thread Bevan Jenkins
Pierre GM gmail.com> writes: > > On Jun 10, 2010, at 7:16 PM, Bevan Jenkins wrote: > > Hello, > > > > I have posted previously about dates prior to 1900 but this seems to be a > > seperate issue. The error message is definitley different. > > I can not

[Numpy-discussion] timeseries - dates prior to 1970

2010-06-10 Thread Bevan Jenkins
Hello, I have posted previously about dates prior to 1900 but this seems to be a seperate issue. The error message is definitley different. I can not seem to convert a timseseries from one frequency ('D') to another ('H') when i use dates prior to 1970 as shown below. This works fine when I u

Re: [Numpy-discussion] Accumulate values that are below threshold

2009-01-08 Thread Bevan Jenkins
0 > > The comparison line above, "(carry - thresh0 >= -1e-15", may look > strange -- it basically just does "carry >= thresh". For some reason > I don't quite understand, when accumulating floats, it sometimes > happens that "1.0 != 1.0&qu

[Numpy-discussion] Accumulate values that are below threshold

2009-01-07 Thread Bevan Jenkins
is appreciated, Bevan Jenkins ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Timeseries scikit - dates prior to 1900

2008-10-21 Thread Bevan Jenkins
hour =0) In [5]: print (E) <> I was wondering if there is anyway to use timeseries with dates <1900? If not I will forgo timeseries for the select few datasets I have with data <1900. Thanks for the v. useful scikit, Bevan Jenkins _