Well, that piece of information is certainly useful, because I didn't find
it anywhere else.
What is the default behavior of pytables 2.0 then going to be ?
It kind of changes the behavior of my code whether I have to construct a
string by adding paths and '/', or traverse a hierarchy recursively.
Actually what confuses me is that the behvavior is different for
for item in table:
do_something(item)
than it is for
for item in table[:]:
do_something(item)
The first allows me to use
item['path/to/child']
while in the latter case I have to write
item['path']['to']['child']
Is that behavior going to be unified ?
Cheers,
Jan
On 12/14/06, Ivan Vilata i Balaguer <[EMAIL PROTECTED]> wrote:
Curious Jan (el 2006-12-13 a les 14:27:17 -0800) va dir::
> Actually, I just found the problem.
> Apparently, changing the table type from numpy to numarray fixes the
> problem.
> [...]
Actually, the ``NestedRecArray`` implemented in PyTables allows one to
access nested fields by separating the elements in the path with a
slash, like this::
>>> nestedrecarray['path/to/field']
However, the NumPy equivalent needs the elements in the path accessed
one at a time, so you would need to write::
>>> nprecarray['path']['to']['field']
However, I see you won't need that piece of information. ;)
::
Ivan Vilata i Balaguer >qo< http://www.carabos.com/
Cárabos Coop. V. V V Enjoy Data
""
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iQCVAwUBRYEI4Z+xtF0dvCVFAQK6kwP+O4CRJw3VptTBNv4gsoAnurKtfbqPzgP0
ScTQJQAqbeZi+u0f8DzLFacqcptakeCB06ue3EDzxlZSmOo0YiemH3N2o4e90y5k
bBCVfHIGfzEC0RuzkpH1UU6DsTT4OIQj5Wq2M7/8ONchID9PHVE6crH1wY94p2Mx
XhzZAdA6n8w=
=VWzD
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
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