On Tuesday 06 March 2007 18:22, Francesc Altet wrote:
> [Gabriel, you kept sending this to pytables-announce, instead of
> pytables-user ;)]

The first time I also sent it with the wrong from-address; so at least there 
was some form of improvement ;-)

>
> 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.

Thanks very much.

> 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?

I would expect PyTables 2.x to return numpy objects, even if they were 
originally stored as a numarray. But then again: I am so new to pytables and 
numerical python, that I have never even knowingly used numarray...

I guess if people don't want to change existing code, they might as well 
continue to use PyTables 1.x. Those who want to use PyTables 2.x are actively 
developing or maintaining code, are likely to migrate to numpy anyway (if 
they haven't done so already) and are likely to have older datasets around 
that they may want to access with new code.

Cheers, Gabriel




-------------------------------------------------------------------------
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