Error in Numpy 1.6 timedelta()
Hello, I receive the following error when trying:
import numpy as np np.timedelta64(10, 's')
TypeError: function takes at most 1 argument (2 given) I know this is probably fully implemented in Numpy 1.7, but what about 1.6.1? Thanks! -Fernando -- Fernando Paolo Institute of Geophysics & Planetary Physics Scripps Institution of Oceanography University of California, San Diego 9500 Gilman Drive La Jolla, CA 92093-0225
On Mon, Oct 31, 2011 at 3:45 PM, Fernando Paolo <fspaolo@gmail.com> wrote:
Hello,
I receive the following error when trying:
import numpy as np np.timedelta64(10, 's')
TypeError: function takes at most 1 argument (2 given)
I know this is probably fully implemented in Numpy 1.7, but what about 1.6.1?
Yep, it's working in current master. I'll have to check 1.6.1 later unless someone who is running it can comment. Chuck
On Mon, Oct 31, 2011 at 11:24 PM, Charles R Harris < charlesr.harris@gmail.com> wrote:
On Mon, Oct 31, 2011 at 3:45 PM, Fernando Paolo <fspaolo@gmail.com> wrote:
Hello,
I receive the following error when trying:
import numpy as np np.timedelta64(10, 's')
TypeError: function takes at most 1 argument (2 given)
I know this is probably fully implemented in Numpy 1.7, but what about 1.6.1?
Yep, it's working in current master. I'll have to check 1.6.1 later unless someone who is running it can comment.
Doesn't work in 1.6.1. Datetime is not in very good shape in that release,
if you want to use it for real work it's best to run master. Ralf
Okay thanks. Will use the python `datetime.timedelta` for now. -Fernando On Tue, Nov 1, 2011 at 9:51 AM, Ralf Gommers <ralf.gommers@googlemail.com>wrote:
On Mon, Oct 31, 2011 at 11:24 PM, Charles R Harris < charlesr.harris@gmail.com> wrote:
On Mon, Oct 31, 2011 at 3:45 PM, Fernando Paolo <fspaolo@gmail.com>wrote:
Hello,
I receive the following error when trying:
import numpy as np np.timedelta64(10, 's')
TypeError: function takes at most 1 argument (2 given)
I know this is probably fully implemented in Numpy 1.7, but what about 1.6.1?
Yep, it's working in current master. I'll have to check 1.6.1 later unless someone who is running it can comment.
Doesn't work in 1.6.1. Datetime is not in very good shape in that
release, if you want to use it for real work it's best to run master.
Ralf
_______________________________________________ SciPy-User mailing list SciPy-User@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-user
-- Fernando Paolo Institute of Geophysics & Planetary Physics Scripps Institution of Oceanography University of California, San Diego 9500 Gilman Drive La Jolla, CA 92093-0225
participants (3)
-
Charles R Harris
-
Fernando Paolo
-
Ralf Gommers