[Gabriel, you kept sending this to pytables-announce, instead of
pytables-user ;)]

El dt 06 de 03 del 2007 a les 08:37 -0800, en/na
[EMAIL PROTECTED] va escriure:
> Hi, I might be missing something, but if I wanted the value in row i,
> col 'colname', I often used table[i]['colname'] in pytables version 1.
> This also works in version 2 if the file has been created with that
> version, but not if files have been created with version 1. In the
> former case table[i] returns an object of type 'numpy.void', in the
> latter an object of type 'instance'. Is there a way to get this to
> work for version 1 files too?

This has been fixed in trunk. Now, a NestedRecArray container is always
returned so as to mimic the behaviour of PyTables 1.x. So, you will be
able use table[i]['colname'] again.

However, this makes me wonder whether objects labeled with a 'numarray'
flavor in files created with PyTables 1.x shouldn't be delivered as
'numpy' objects in PyTables 2.x. I think this should be a good thing in
general (after all, in PyTables 2.x 'numpy' is the default flavor, as
'numarray' was for 1.x). Nevertheless, there would surely be a few
people that would want to honor the old 'numarray' flavor for PyTables
1.x files even when using PyTables 2.x.  Opinions?

Cheers,


-- 
Francesc Altet    |  Be careful about using the following code --
Carabos Coop. V.  |  I've only proven that it works, 
www.carabos.com   |  I haven't tested it. -- Donald Knuth


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to