Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Mon, Jul 21, 2008 at 11:33 PM, Pierre GM [EMAIL PROTECTED] wrote:


  Pierre, I suggest you go to python.org and install python-2.3.7 instead
 of
  shooting blind. It's pretty easy if you're running linux, just be sure to
  end with make altinstall in case your distro has python installed in
  /usr/local.

 I forgot to mention that my reluctance to install another Python version
 comes
 from the distro I run on: Gentoo is unforgiving with the slightest issue
 with
 Python, and I can't really afford the time to install Kubuntu on my only
 machine...


But I thought Gentoo was for uber geeks? And testing the cpu cooler. Anyway,
the tests pass now, thanks.

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Pierre GM
On Tuesday 22 July 2008 02:06:35 Charles R Harris wrote:
 But I thought Gentoo was for uber geeks? And testing the cpu cooler.

Turns out that I'm not one. It's educational, though, but the older I get, the 
less compiling kernels and tweaking OS corresponds to my idea of fun.

 Anyway, the tests pass now, thanks.

You're quite welcome, and many apologies for the noise and waste of time.

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 12:10 AM, Pierre GM [EMAIL PROTECTED] wrote:

 On Tuesday 22 July 2008 02:06:35 Charles R Harris wrote:
  But I thought Gentoo was for uber geeks? And testing the cpu cooler.

 Turns out that I'm not one. It's educational, though, but the older I get,
 the
 less compiling kernels and tweaking OS corresponds to my idea of fun.

  Anyway, the tests pass now, thanks.

 You're quite welcome, and many apologies for the noise and waste of time.


Looks like you shouldn't use NumpyTestCase for the 1.2 test, however.

/usr/lib/python2.5/unittest.py:507: DeprecationWarning: NumpyTestCase will
be removed in the next release; please update your code to use nose or
unittest
  return self.suiteClass(map(testCaseClass, testCaseNames))
/usr/lib/python2.5/site-packages/numpy/ma/tests/test_extras.py:330:
DeprecationWarning: NumpyTestCase will be removed in the next release;
please update your code to use nose or unittest
  NumpyTestCase.__init__(self, *args, **kwds)

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 12:39 AM, Pierre GM [EMAIL PROTECTED] wrote:

 On Tuesday 22 July 2008 02:27:38 Charles R Harris wrote:
  Looks like you shouldn't use NumpyTestCase for the 1.2 test, however.

 Looks like Alan updated it for me, the tests look OK on 1.2.

 Interestingly, I segfault when running
 python -c import numpy; numpy.test()
 (NumPy version 1.2.0.dev5496)


I'm testing 1.2.0.dev5497 and still see the deprecation warnings, they are
up near the beginning. I don't get a segfault, either. I wonder what that is
about?

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Mon, Jul 21, 2008 at 8:40 PM, Stéfan van der Walt [EMAIL PROTECTED]
wrote:

 2008/7/20 Ryan May [EMAIL PROTECTED]:
 arr
  array([('JOE', 25.301), ('BOB', 27.899)],
   dtype=[('stid', '|S4'), ('temp', 'f8')])

 The code in SVN still breaks for more complicated dtypes, such as:

 np.dtype([('x', int), ('y', [('t', int), ('s', float)])])

 Please find attached a patch which addresses the issue (it passes all
 unit tests).


This bit is illegal syntax in Python 2.3

X.append(tuple(conv(val) for (conv, val) in zip(converterseq,
vals)))

So this isn't going to work for 1.1.1

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Pierre GM
On Tuesday 22 July 2008 02:58:25 Charles R Harris wrote:
 I'm testing 1.2.0.dev5497 and still see the deprecation warnings, they are
 up near the beginning.

I'm afraid you have some outdated files lingering somewhere, there's no 
NumpyTestCase in the sources of numpy.ma

 I don't get a segfault, either. I wonder what that  is about?

Looks like it's coming from linalg. Now, which one ?
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 1:06 AM, Pierre GM [EMAIL PROTECTED] wrote:

 On Tuesday 22 July 2008 02:58:25 Charles R Harris wrote:
  I'm testing 1.2.0.dev5497 and still see the deprecation warnings, they
 are
  up near the beginning.

 I'm afraid you have some outdated files lingering somewhere, there's no
 NumpyTestCase in the sources of numpy.ma

  I don't get a segfault, either. I wonder what that  is about?

 Looks like it's coming from linalg. Now, which one ?


This is a new thing, I take it. Looks like a good time to wait  for morning
;)

The deprecation warning went away when I deleted the numpy site-package and
reinstalled. Grrr, I should know better by now.

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Pierre GM
On Tuesday 22 July 2008 03:23:40 Charles R Harris wrote:
  Looks like it's coming from linalg. Now, which one ?

 This is a new thing, I take it. Looks like a good time to wait  for morning

Could be on my side only with a botched dependence, but finding which one...

 The deprecation warning went away when I deleted the numpy site-package and
 reinstalled. Grrr, I should know better by now.

Welcome to the club. If I had $1 each time I thought the same thing...


___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Stéfan van der Walt
2008/7/22 Charles R Harris [EMAIL PROTECTED]:
 This bit is illegal syntax in Python 2.3

 X.append(tuple(conv(val) for (conv, val) in zip(converterseq,
 vals)))

 So this isn't going to work for 1.1.1

That's easy to fix.  New patch attached.

Cheers
Stéfan


loadtxt.patch
Description: Binary data
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 2:45 AM, Stéfan van der Walt [EMAIL PROTECTED]
wrote:

 2008/7/22 Charles R Harris [EMAIL PROTECTED]:
  This bit is illegal syntax in Python 2.3
 
  X.append(tuple(conv(val) for (conv, val) in zip(converterseq,
  vals)))
 
  So this isn't going to work for 1.1.1

 That's easy to fix.  New patch attached.


Yep, but I wanted you to look it over and find all the problems ;)

Could you post a patch against current mainline svn, which already has your
previous patch applied? I'm also curious why we need tuples, are we using
these values as hashes someplace.

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Stéfan van der Walt
2008/7/22 Charles R Harris [EMAIL PROTECTED]:
 That's easy to fix.  New patch attached.

 Yep, but I wanted you to look it over and find all the problems ;)

Ah, you have your managerial hat on!

 Could you post a patch against current mainline svn, which already has your
 previous patch applied? I'm also curious why we need tuples, are we using
 these values as hashes someplace.

Applied.  The reason we need to use tuples is because

In [3]: np.array([[1, 2], [3, 4]], dtype=[('x', int), ('y', int)])
---
TypeError Traceback (most recent call last)

/Users/stefan/ipython console in module()

TypeError: expected a readable buffer object

but

In [4]: np.array([(1, 2), (3, 4)], dtype=[('x', int), ('y', int)])
Out[4]:
array([(1, 2), (3, 4)],
  dtype=[('x', 'i4'), ('y', 'i4')])

Regards
Stéfan
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Stéfan van der Walt
2008/7/22 Stéfan van der Walt [EMAIL PROTECTED]:
 Could you post a patch against current mainline svn, which already has your
 previous patch applied? I'm also curious why we need tuples, are we using
 these values as hashes someplace.

 Applied.  The reason we need to use tuples is because

Should these changes be back-ported to the 1.1.1 branch?

Stéfan
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 9:21 AM, Stéfan van der Walt [EMAIL PROTECTED]
wrote:

 2008/7/22 Stéfan van der Walt [EMAIL PROTECTED]:
  Could you post a patch against current mainline svn, which already has
 your
  previous patch applied? I'm also curious why we need tuples, are we
 using
  these values as hashes someplace.
 
  Applied.  The reason we need to use tuples is because

 Should these changes be back-ported to the 1.1.1 branch?


That's what I'm trying out now that I've got Python2.3 installed for
testing. What I'd like to do is just copy the whole io.py file over. Let's
see if Trac is working... OK, the only other change since 1.1.0 is using
np.x in the doctests, which doesn't look like a big problem. I wonder what
the status of that is in 1.1.x? Alan?

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Alan McIntyre
On Tue, Jul 22, 2008 at 11:44 AM, Charles R Harris
[EMAIL PROTECTED] wrote:
 OK, the only other change since 1.1.0 is using
 np.x in the doctests, which doesn't look like a big problem. I wonder what
 the status of that is in 1.1.x? Alan?

All the changes I made for that were in the trunk after 1.1.1 was
tagged, so the 1.1.1 test behavior should be completely under the old
framework's rules.  I could probably backport the np.x context to
rundocs() (off the top of my head I can't remember if there was any
mechanism to run all the doctests in NumPy), but it might just be
easier to add import numpy as np to the modules containing doctests
that use np.x.  I can help with that if need be, just let me know.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 9:58 AM, Alan McIntyre [EMAIL PROTECTED]
wrote:

 On Tue, Jul 22, 2008 at 11:44 AM, Charles R Harris
 [EMAIL PROTECTED] wrote:
  OK, the only other change since 1.1.0 is using
  np.x in the doctests, which doesn't look like a big problem. I wonder
 what
  the status of that is in 1.1.x? Alan?

 All the changes I made for that were in the trunk after 1.1.1 was
 tagged, so the 1.1.1 test behavior should be completely under the old
 framework's rules.  I could probably backport the np.x context to
 rundocs() (off the top of my head I can't remember if there was any
 mechanism to run all the doctests in NumPy), but it might just be
 easier to add import numpy as np to the modules containing doctests
 that use np.x.  I can help with that if need be, just let me know.


If we do a 1.1.2 it might be handy for future backports if rundocs() has the
np.x context. For the moment I'm tempted to just leave them as they don't
look any worse than than they were, i.e., assuming from numpy import *

Thanks,

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Pierre GM
On Tuesday 22 July 2008 12:05:22 Charles R Harris wrote:

 Failed importing
 /usr/local/lib/python2.3/site-packages/numpy/ma/tests/test_mrecords.py:
 invalid syntax (mrecords.py, line 245)

Charles,
Can you import numpy.ma.mrecords ? And we're talking about the 1.1.x branch, 
right ?

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 10:23 AM, Pierre GM [EMAIL PROTECTED] wrote:

 On Tuesday 22 July 2008 12:05:22 Charles R Harris wrote:

  Failed importing
  /usr/local/lib/python2.3/site-packages/numpy/ma/tests/test_mrecords.py:
  invalid syntax (mrecords.py, line 245)

 Charles,
 Can you import numpy.ma.mrecords ? And we're talking about the 1.1.x
 branch,
 right ?


I fixed it, Pierre. You can't do

(_[1] for _ in ddtype.descr)

to get a tuple. Actually, I think this should fail in mainline also. Alan,
does nose show import failures?

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 10:48 AM, Charles R Harris 
[EMAIL PROTECTED] wrote:



 On Tue, Jul 22, 2008 at 10:23 AM, Pierre GM [EMAIL PROTECTED] wrote:

 On Tuesday 22 July 2008 12:05:22 Charles R Harris wrote:

  Failed importing
  /usr/local/lib/python2.3/site-packages/numpy/ma/tests/test_mrecords.py:
  invalid syntax (mrecords.py, line 245)

 Charles,
 Can you import numpy.ma.mrecords ? And we're talking about the 1.1.x
 branch,
 right ?


 I fixed it, Pierre. You can't do

 (_[1] for _ in ddtype.descr)

 to get a tuple. Actually, I think this should fail in mainline also. Alan,
 does nose show import failures?


Well, it produces a generator object in python2.5, which zip accepts. I
don't know in which Python version this feature was added.

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Pierre GM
On Tuesday 22 July 2008 12:48:20 Charles R Harris wrote:
 I fixed it, Pierre. You can't do

 (_[1] for _ in ddtype.descr)

 to get a tuple. 

OK, thx for that. AAMOF, lines 243-245 should be:
self._fill_value = np.array(tuple(fillval),
dtype=[(_[0], _[1]) 
   for _ in ddtype.descr])

I guess 2.3 choked on the generator instead of the list.

 Actually, I think this should fail in mainline also. 

1.2 ? Can't, not the same approach: as in 1.2, flexible types are supported by 
numpy.ma.core, the get_fill_value trick in numpy.ma.mrecords becomes moot.

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Pierre GM
On Tuesday 22 July 2008 12:56:11 Charles R Harris wrote:

 Well, it produces a generator object in python2.5, which zip accepts. I
 don't know in which Python version this feature was added.

Likely 2.4, as it works on my machine (else I would have found about it at one 
point or another...)

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Alan McIntyre
On Tue, Jul 22, 2008 at 12:48 PM, Charles R Harris
[EMAIL PROTECTED] wrote:
 Actually, I think this should fail in mainline also. Alan,
 does nose show import failures?

I've seen talk of it swallowing some exceptions, but I'm not sure of
the specifics.  Are you referring to import numpy.ma.mrecords under
Python 2.3, NumPy trunk?   Here's what I get:

Python 2.3.7 (#1, Jul 14 2008, 22:34:29)
[GCC 4.1.2 (Gentoo 4.1.2 p1.1)] on linux2
Type help, copyright, credits or license for more information.
 import numpy.ma.mrecords
Traceback (most recent call last):
  File stdin, line 1, in ?
  File /usr/local/lib/python2.3/site-packages/numpy/__init__.py,
line 107, in ?
import ma
  File /usr/local/lib/python2.3/site-packages/numpy/ma/__init__.py,
line 14, in ?
import core
  File /usr/local/lib/python2.3/site-packages/numpy/ma/core.py, line 113, in ?
max_filler.update([(k, -np.inf) for k in [np.float32, np.float64]])
AttributeError: keys
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 10:52 AM, Pierre GM [EMAIL PROTECTED] wrote:

 On Tuesday 22 July 2008 12:48:20 Charles R Harris wrote:
  I fixed it, Pierre. You can't do
 
  (_[1] for _ in ddtype.descr)

  to get a tuple.

 OK, thx for that. AAMOF, lines 243-245 should be:
 self._fill_value = np.array(tuple(fillval),
dtype=[(_[0], _[1])
   for _ in ddtype.descr])

 I guess 2.3 choked on the generator instead of the list.


I just replaced () by []. The 1.1.x version is now

dt = zip(ddtype.names, [s[1] for s in ddtype.descr])

Which should have the same effect, although not done as slickly.

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 11:00 AM, Pierre GM [EMAIL PROTECTED] wrote:

 On Tuesday 22 July 2008 13:00:08 Alan McIntyre wrote:
  I've seen talk of it swallowing some exceptions, but I'm not sure of
  the specifics.  Are you referring to import numpy.ma.mrecords under
  Python 2.3, NumPy trunk?   Here's what I get:

 Hold on a second, what are we taling about ?
 If it's the trunk, it's Numpy1.2, and Python2.3 shouldn't be supported,
 right ?
 If it's the 1.1.x branch, then I'm in trouble.


I fixed it in the 1.1.x branch, trunk looks fine.

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Alan McIntyre
On Tue, Jul 22, 2008 at 1:00 PM, Pierre GM [EMAIL PROTECTED] wrote:
 On Tuesday 22 July 2008 13:00:08 Alan McIntyre wrote:
 I've seen talk of it swallowing some exceptions, but I'm not sure of
 the specifics.  Are you referring to import numpy.ma.mrecords under
 Python 2.3, NumPy trunk?   Here's what I get:

 Hold on a second, what are we taling about ?
 If it's the trunk, it's Numpy1.2, and Python2.3 shouldn't be supported,
 right ?

I've been told NumPy 1.2 doesn't have to support Python 2.3, so I hope
that's right. :)

 If it's the 1.1.x branch, then I'm in trouble.
 Please don't tell me I'm in trouble.

No, I was just trying NumPy trunk against Python 2.3 based on
something Charles said; sorry for the confusion.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Pierre GM
On Tuesday 22 July 2008 13:06:52 Charles R Harris wrote:

 I just replaced () by []. The 1.1.x version is now

 dt = zip(ddtype.names, [s[1] for s in ddtype.descr])

 Which should have the same effect, although not done as slickly.

Bah, that'll do for now. Many many thanks !

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Jarrod Millman
On Tue, Jul 22, 2008 at 10:09 AM, Alan McIntyre [EMAIL PROTECTED] wrote:
 I've been told NumPy 1.2 doesn't have to support Python 2.3, so I hope
 that's right. :)

Yes that's correct.  NumPy 1.2 requires at least Python 2.4

-- 
Jarrod Millman
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
So, the following oddities remain for Python2.3 :

Failed importing numpy.f2py.lib.extgen: update() takes no keyword arguments
snip
ctypes is not available on this python: skipping the test (import error was:
ctypes is not available.)
No distutils available, skipping test.


The missing ctypes shouldn't be a problem. I don't know what to make of the
f2py import failure or if it matters. Nor do I understand what No distutils
available implies. Anyone have ideas?

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Robert Kern
On Tue, Jul 22, 2008 at 12:41, Charles R Harris
[EMAIL PROTECTED] wrote:

 So, the following oddities remain for Python2.3 :

 Failed importing numpy.f2py.lib.extgen: update() takes no keyword arguments
 snip
 ctypes is not available on this python: skipping the test (import error was:
 ctypes is not available.)
 No distutils available, skipping test.


 The missing ctypes shouldn't be a problem. I don't know what to make of the
 f2py import failure or if it matters.

Everything in numpy/f2py/lib/ is the unfinished G3 version of f2py,
whose development has moved to Launchpad. It has been removed from the
trunk, and errors in it can be ignored for 1.1.x.

 Nor do I understand what No distutils
 available implies. Anyone have ideas?

It's another ctypes skipped test.
numpy/tests/test_ctypes.py:TestLoadLibrary.check_basic2().

-- 
Robert Kern

I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth.
 -- Umberto Eco
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Pierre GM
On Tuesday 22 July 2008 13:41:04 Charles R Harris wrote:

 The missing ctypes shouldn't be a problem. I don't know what to make of the
 f2py import failure or if it matters. 

/extgen/py_support.py:284:
parent_container_options.update(prefix='\\n\\n:Parameters:\\n\n  ')
./extgen/py_support.py:287:
parent_container_options.update(prefix='\\n\\n:Optional parameters:
\\n\n  ')
./extgen/py_support.py:290:
parent_container_options.update(prefix='\\n\\n:Extra parameters:\\n\n  ')
./extgen/py_support.py:293:
parent_container_options.update(prefix='\\n\\n:Returns:\\n\n  ',

so, we can't use that for Python 2.3, we need to use a syntax like
parent_container_options.update({'prefix':blahblahblah})



___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 11:46 AM, Robert Kern [EMAIL PROTECTED] wrote:

 On Tue, Jul 22, 2008 at 12:41, Charles R Harris
 [EMAIL PROTECTED] wrote:
 
  So, the following oddities remain for Python2.3 :
 
  Failed importing numpy.f2py.lib.extgen: update() takes no keyword
 arguments
  snip
  ctypes is not available on this python: skipping the test (import error
 was:
  ctypes is not available.)
  No distutils available, skipping test.
 
 
  The missing ctypes shouldn't be a problem. I don't know what to make of
 the
  f2py import failure or if it matters.

 Everything in numpy/f2py/lib/ is the unfinished G3 version of f2py,
 whose development has moved to Launchpad. It has been removed from the
 trunk, and errors in it can be ignored for 1.1.x.

  Nor do I understand what No distutils
  available implies. Anyone have ideas?

 It's another ctypes skipped test.
 numpy/tests/test_ctypes.py:TestLoadLibrary.check_basic2().


OK, thanks. Can I take it that we are good to go as far as the tests show?

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Robert Kern
On Tue, Jul 22, 2008 at 12:57, Charles R Harris
[EMAIL PROTECTED] wrote:

 On Tue, Jul 22, 2008 at 11:46 AM, Robert Kern [EMAIL PROTECTED] wrote:

 On Tue, Jul 22, 2008 at 12:41, Charles R Harris
 [EMAIL PROTECTED] wrote:
 
  So, the following oddities remain for Python2.3 :
 
  Failed importing numpy.f2py.lib.extgen: update() takes no keyword
  arguments
  snip
  ctypes is not available on this python: skipping the test (import error
  was:
  ctypes is not available.)
  No distutils available, skipping test.
 
 
  The missing ctypes shouldn't be a problem. I don't know what to make of
  the
  f2py import failure or if it matters.

 Everything in numpy/f2py/lib/ is the unfinished G3 version of f2py,
 whose development has moved to Launchpad. It has been removed from the
 trunk, and errors in it can be ignored for 1.1.x.

  Nor do I understand what No distutils
  available implies. Anyone have ideas?

 It's another ctypes skipped test.
 numpy/tests/test_ctypes.py:TestLoadLibrary.check_basic2().

 OK, thanks. Can I take it that we are good to go as far as the tests show?

I think so.

-- 
Robert Kern

I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth.
 -- Umberto Eco
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 12:03 PM, Robert Kern [EMAIL PROTECTED] wrote:

 On Tue, Jul 22, 2008 at 12:57, Charles R Harris
 [EMAIL PROTECTED] wrote:
 
  On Tue, Jul 22, 2008 at 11:46 AM, Robert Kern [EMAIL PROTECTED]
 wrote:
 
  On Tue, Jul 22, 2008 at 12:41, Charles R Harris
  [EMAIL PROTECTED] wrote:
  
   So, the following oddities remain for Python2.3 :
  
   Failed importing numpy.f2py.lib.extgen: update() takes no keyword
   arguments
   snip
   ctypes is not available on this python: skipping the test (import
 error
   was:
   ctypes is not available.)
   No distutils available, skipping test.
  
  
   The missing ctypes shouldn't be a problem. I don't know what to make
 of
   the
   f2py import failure or if it matters.
 
  Everything in numpy/f2py/lib/ is the unfinished G3 version of f2py,
  whose development has moved to Launchpad. It has been removed from the
  trunk, and errors in it can be ignored for 1.1.x.
 
   Nor do I understand what No distutils
   available implies. Anyone have ideas?
 
  It's another ctypes skipped test.
  numpy/tests/test_ctypes.py:TestLoadLibrary.check_basic2().
 
  OK, thanks. Can I take it that we are good to go as far as the tests
 show?

 I think so.


Although... would it be a problem to just remove the f2py stuff? That would
get rid of one confusing message.

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Robert Kern
On Tue, Jul 22, 2008 at 13:20, Charles R Harris
[EMAIL PROTECTED] wrote:

 Although... would it be a problem to just remove the f2py stuff? That would
 get rid of one confusing message.

Probably not. See r5347 and r5348 for what I had to do on the trunk.

-- 
Robert Kern

I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth.
 -- Umberto Eco
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 12:51 PM, Robert Kern [EMAIL PROTECTED] wrote:

 On Tue, Jul 22, 2008 at 13:20, Charles R Harris
 [EMAIL PROTECTED] wrote:
 
  Although... would it be a problem to just remove the f2py stuff? That
 would
  get rid of one confusing message.

 Probably not. See r5347 and r5348 for what I had to do on the trunk.


OK, done. I think I'll replace the ctypes warnings with a simple S if no
one objects.

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Robert Kern
On Tue, Jul 22, 2008 at 15:07, Charles R Harris
[EMAIL PROTECTED] wrote:


 On Tue, Jul 22, 2008 at 12:51 PM, Robert Kern [EMAIL PROTECTED] wrote:

 On Tue, Jul 22, 2008 at 13:20, Charles R Harris
 [EMAIL PROTECTED] wrote:
 
  Although... would it be a problem to just remove the f2py stuff? That
  would
  get rid of one confusing message.

 Probably not. See r5347 and r5348 for what I had to do on the trunk.

 OK, done. I think I'll replace the ctypes warnings with a simple S if no
 one objects.

Sure.

-- 
Robert Kern

I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth.
 -- Umberto Eco
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Pierre GM
On Tuesday 22 July 2008 17:10:57 Charles R Harris wrote:

 Runs on both Python 2.5.1 and 2.3.7 here. I'll run the buildbots.

Thx a lot, I'll close the ticket.

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 3:04 PM, Pierre GM [EMAIL PROTECTED] wrote:

 On Tuesday 22 July 2008 17:10:57 Charles R Harris wrote:

  Runs on both Python 2.5.1 and 2.3.7 here. I'll run the buildbots.

 Thx a lot, I'll close the ticket.


Any more changes in the pipeline?

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Alan McIntyre
On Tue, Jul 22, 2008 at 4:48 PM, Pierre GM [EMAIL PROTECTED] wrote:
 Could anybody working on the 1.1.x branch test r5507 ? I just backported a
 bugfix from 1.2, and I'd like to make sure that 1. it doesn't break anything
 (I can't see why it should, but), 2. I can close the ticket (#857)
 Thx a lot in advance !

1.1.x runs with no errors against 2.3.7, 2.4.5, and 2.5.3 for me on Linux.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Pierre GM
On Tuesday 22 July 2008 17:24:27 Alan McIntyre wrote:

 1.1.x runs with no errors against 2.3.7, 2.4.5, and 2.5.3 for me on Linux.

Thx Alan ! I didn't expect the fix to crash anything, but better safe than 
sorry.
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-22 Thread Charles R Harris
On Tue, Jul 22, 2008 at 3:22 PM, Pierre GM [EMAIL PROTECTED] wrote:

 On Tuesday 22 July 2008 17:24:27 Alan McIntyre wrote:

  1.1.x runs with no errors against 2.3.7, 2.4.5, and 2.5.3 for me on
 Linux.

 Thx Alan ! I didn't expect the fix to crash anything, but better safe than
 sorry.
 _


Apropos nothing much, but I can definitely recommend gcc 4.3. It's *much*
faster. So much so that I wasn't even sure the build was working correctly
;) YMMV.

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-21 Thread David Huard
Ryan, I committed your patch to the trunk and added a test for it from your
failing example.

Jarrod, though I'm also wary to touch the branch so late, the patch is minor
and I don't see how it could break something that was not already broken.

David

2008/7/20 Ryan May [EMAIL PROTECTED]:

 Jarrod Millman wrote:

 Hello,

 This is a reminder that 1.1.1rc1 will be tagged tonight.  Chuck is
 planning to spend some time today fixing a few final bugs on the 1.1.x
 branch.  If anyone else is planning to commit anything to the 1.1.x
 branch today, please let me know immediately.  Obviously now is not
 the time to commit anything to the branch that could break anything,
 so please be extremely careful if you have to touch the branch.

 Once the release is tagged, Chris and David will create binary
 installers for both Windows and Mac.  Hopefully, this will give us an
 opportunity to have much more widespread testing before releasing
 1.1.1 final at the end of the month.

  Can I get anyone to look at this patch for loadtext()?

 I was trying to use loadtxt() today to read in some text data, and I had
 a problem when I specified a dtype that only contained as many elements
 as in columns in usecols.  The example below shows the problem:

 import numpy as np
 import StringIO
 data = '''STID RELH TAIR
 JOE 70.1 25.3
 BOB 60.5 27.9
 '''
 f = StringIO.StringIO(data)
 names = ['stid', 'temp']
 dtypes = ['S4', 'f8']
 arr = np.loadtxt(f, usecols=(0,2),dtype=zip(names,dtypes), skiprows=1)

 With current 1.1 (and SVN head), this yields:

 IndexErrorTraceback (most recent call last)

 /home/rmay/ipython console in module()

 /usr/lib64/python2.5/site-packages/numpy/lib/io.pyc in loadtxt(fname,
 dtype, comments, delimiter, converters, skiprows, usecols, unpack)
309 for j in xrange(len(vals))]
310 if usecols is not None:
 -- 311 row = [converterseq[j](vals[j]) for j in usecols]
312 else:
313 row = [converterseq[j](val) for j,val in
 enumerate(vals)]

 IndexError: list index out of range
 -

 I've added a patch that checks for usecols, and if present, correctly
 creates the converters dictionary to map each specified column with
 converter for the corresponding field in the dtype. With the attached
 patch, this works fine:

 arr
 array([('JOE', 25.301), ('BOB', 27.899)],
  dtype=[('stid', '|S4'), ('temp', 'f8')])


 Thanks,
 Ryan

 --
 Ryan May
 Graduate Research Assistant
 School of Meteorology
 University of Oklahoma

 --
 Ryan May
 Graduate Research Assistant
 School of Meteorology
 University of Oklahoma

 ___
 Numpy-discussion mailing list
 Numpy-discussion@scipy.org
 http://projects.scipy.org/mailman/listinfo/numpy-discussion


___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-21 Thread Charles R Harris
On Mon, Jul 21, 2008 at 7:02 PM, David Huard [EMAIL PROTECTED] wrote:

 Ryan, I committed your patch to the trunk and added a test for it from your
 failing example.

 Jarrod, though I'm also wary to touch the branch so late, the patch is
 minor and I don't see how it could break something that was not already
 broken.


I'm in favor of putting it in. Pierre has also made some fixes to masked
arrays. I think that is about the end of it for 1.1.1. However, if anyone is
running Python 2.3 it would be helpful if you could test the release
candidate as the buildbots are all 2.4 or 2.5.

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-21 Thread Pierre GM

 I'm in favor of putting it in. Pierre has also made some fixes to masked
 arrays. I think that is about the end of it for 1.1.1. However, if anyone
 is running Python 2.3 it would be helpful if you could test the release
 candidate as the buildbots are all 2.4 or 2.5.

Oh yes. I don't have access to Python 2.3, so I haven't been able to check 
whether one dictionary update in MaskedArray.reshape would work properly (on 
1.1.x, it does on 1.2). 

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-21 Thread Stéfan van der Walt
2008/7/20 Ryan May [EMAIL PROTECTED]:
arr
 array([('JOE', 25.301), ('BOB', 27.899)],
  dtype=[('stid', '|S4'), ('temp', 'f8')])

The code in SVN still breaks for more complicated dtypes, such as:

np.dtype([('x', int), ('y', [('t', int), ('s', float)])])

Please find attached a patch which addresses the issue (it passes all
unit tests).

Regards
Stéfan


loadtxt.patch
Description: Binary data
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-21 Thread Jarrod Millman
On Mon, Jul 21, 2008 at 6:59 PM, Charles R Harris
[EMAIL PROTECTED] wrote:
 I'm in favor of putting it in. Pierre has also made some fixes to masked
 arrays. I think that is about the end of it for 1.1.1. However, if anyone is
 running Python 2.3 it would be helpful if you could test the release
 candidate as the buildbots are all 2.4 or 2.5.

Hey Chuck,

Let's commit the changes to the 1.1.x branch and I can tag a 1.1.1rc2
tomorrow night (in about 24 hours).  Is that enough time for everyone
to get there final fixes in?

I will ask Chris and David to wait until I tag 1.1.1rc2 to create new
binaries (assuming they haven't done so all ready).

Thanks,

-- 
Jarrod Millman
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-21 Thread Charles R Harris
On Mon, Jul 21, 2008 at 8:02 PM, Pierre GM [EMAIL PROTECTED] wrote:


  I'm in favor of putting it in. Pierre has also made some fixes to masked
  arrays. I think that is about the end of it for 1.1.1. However, if
 anyone
  is running Python 2.3 it would be helpful if you could test the release
  candidate as the buildbots are all 2.4 or 2.5.

 Oh yes. I don't have access to Python 2.3, so I haven't been able to check
 whether one dictionary update in MaskedArray.reshape would work properly
 (on
 1.1.x, it does on 1.2).


Hmm... 70 errors. Pretty much all of them of this sort:

==
ERROR: Tests unmasked_edges
--
Traceback (most recent call last):
  File
/usr/local/lib/python2.3/site-packages/numpy/ma/tests/test_extras.py, line
139, in test_edges
assert_equal(notmasked_edges(a, None), [0,23])
  File /usr/local/lib/python2.3/site-packages/numpy/ma/testutils.py, line
107, in assert_equal
if actual_dtype.char == S and desired_dtype.char == S:
NameError: global name 'actual_dtype' is not defined


Pierre, I suggest you go to python.org and install python-2.3.7 instead of
shooting blind. It's pretty easy if you're running linux, just be sure to
end with make altinstall in case your distro has python installed in
/usr/local.

Chuck
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-21 Thread Pierre GM
On Tuesday 22 July 2008 01:10:30 Charles R Harris wrote:
 Hmm... 70 errors. Pretty much all of them of this sort:

 NameError: global name 'actual_dtype' is not defined

OK, that's a problem with numpy.ma.testutils. r5496 should fix that


 Pierre, I suggest you go to python.org and install python-2.3.7 instead of
 shooting blind. It's pretty easy if you're running linux, just be sure to
 end with make altinstall in case your distro has python installed in
 /usr/local.

If you don't mind, I'd do that as a last resort. The problem wasn't a Python 
version, just a mistake on the version of numpy being installed. I tested 
1.2.0 when I was dealing with 1.1.x. So, I'm back on a 1.1.x, hopefully not 
for long.

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-21 Thread Pierre GM

 Pierre, I suggest you go to python.org and install python-2.3.7 instead of
 shooting blind. It's pretty easy if you're running linux, just be sure to
 end with make altinstall in case your distro has python installed in
 /usr/local.

I forgot to mention that my reluctance to install another Python version comes 
from the distro I run on: Gentoo is unforgiving with the slightest issue with 
Python, and I can't really afford the time to install Kubuntu on my only 
machine...
/whine
r5496 looks OK.


___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-20 Thread Jarrod Millman
Hello,

This is a reminder that 1.1.1rc1 will be tagged tonight.  Chuck is
planning to spend some time today fixing a few final bugs on the 1.1.x
branch.  If anyone else is planning to commit anything to the 1.1.x
branch today, please let me know immediately.  Obviously now is not
the time to commit anything to the branch that could break anything,
so please be extremely careful if you have to touch the branch.

Once the release is tagged, Chris and David will create binary
installers for both Windows and Mac.  Hopefully, this will give us an
opportunity to have much more widespread testing before releasing
1.1.1 final at the end of the month.

Thanks,

-- 
Jarrod Millman
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] 1.1.1rc1 to be tagged tonight

2008-07-20 Thread Ryan May

Jarrod Millman wrote:

Hello,

This is a reminder that 1.1.1rc1 will be tagged tonight.  Chuck is
planning to spend some time today fixing a few final bugs on the 1.1.x
branch.  If anyone else is planning to commit anything to the 1.1.x
branch today, please let me know immediately.  Obviously now is not
the time to commit anything to the branch that could break anything,
so please be extremely careful if you have to touch the branch.

Once the release is tagged, Chris and David will create binary
installers for both Windows and Mac.  Hopefully, this will give us an
opportunity to have much more widespread testing before releasing
1.1.1 final at the end of the month.


Can I get anyone to look at this patch for loadtext()?

I was trying to use loadtxt() today to read in some text data, and I had
a problem when I specified a dtype that only contained as many elements
as in columns in usecols.  The example below shows the problem:

import numpy as np
import StringIO
data = '''STID RELH TAIR
JOE 70.1 25.3
BOB 60.5 27.9
'''
f = StringIO.StringIO(data)
names = ['stid', 'temp']
dtypes = ['S4', 'f8']
arr = np.loadtxt(f, usecols=(0,2),dtype=zip(names,dtypes), skiprows=1)

With current 1.1 (and SVN head), this yields:

IndexErrorTraceback (most recent call last)

/home/rmay/ipython console in module()

/usr/lib64/python2.5/site-packages/numpy/lib/io.pyc in loadtxt(fname,
dtype, comments, delimiter, converters, skiprows, usecols, unpack)
309 for j in xrange(len(vals))]
310 if usecols is not None:
-- 311 row = [converterseq[j](vals[j]) for j in usecols]
312 else:
313 row = [converterseq[j](val) for j,val in
enumerate(vals)]

IndexError: list index out of range
-

I've added a patch that checks for usecols, and if present, correctly
creates the converters dictionary to map each specified column with
converter for the corresponding field in the dtype. With the attached
patch, this works fine:

arr
array([('JOE', 25.301), ('BOB', 27.899)],
  dtype=[('stid', '|S4'), ('temp', 'f8')])


Thanks,
Ryan

--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
--- io.py.bak	2008-07-18 18:12:17.0 -0400
+++ io.py	2008-07-16 22:49:13.0 -0400
@@ -292,8 +292,13 @@
 if converters is None:
 converters = {}
 if dtype.names is not None:
-converterseq = [_getconv(dtype.fields[name][0]) \
-for name in dtype.names]
+if usecols is None:
+converterseq = [_getconv(dtype.fields[name][0]) \
+for name in dtype.names]
+else:
+converters.update([(col,_getconv(dtype.fields[name][0])) \
+for col,name in zip(usecols, dtype.names)])
+
 
 for i,line in enumerate(fh):
 if iskiprows: continue
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion