This. Would. Be. Cool.
[EMAIL PROTECTED] wrote on 03/22/2006 05:47:36 AM:
>
> Indeed, I can see merits in the automatic mounting thing. So here it
> goes my proposal:
>
> What people would think on introducing a special prefix for attributes
> of groups (say '_m_') containing a file path name?. With this, each time
> that a group is opened, PyTables would be able to look at these '_m_'
> attrs (only if they belongs to groups) and proceed to automagically
> mount the pointed files. The mount point would be the name of the
> attribute without the '_m_' prefix.
>
> This is better viewd through an example. Lets suppose that we have the
> an attribute of the '/group' called '_m_my_mount_point', and that its
> contents is a string with the name of another HDF5 file:
>
> >>> f.root.group._v_attrs._m_my_mount_point
> "your_file_path_name"
>
> then, when accessing to the '/group', people will see something like:
>
> >>> f.root.group
> /group (Group) 'The parent of the mount group'
> children := ['my_mount_point' (Group), ....]
>
> so that the data contained in 'your_file_path_name' can be accessible in
> the next way:
>
> >>> f.root.group.my_mount_point.[your_objects_for_mounted_file_here]
>
> Of course, a manual way to mount files would be added as well. Something
> like:
>
> >>> f.mountFile('your_file_path_name', '/group/my_mount_point')
But this should be f.mountFile(where, name) in keeping with the rest of the
API, no?
> I definitely think that this would be a good thing.
Yes!
Elias Collas
Stress Methods
Gulfstream Aerospace Corp
/*******************************************
* "You keep using that word. I do not
* think it means what you think
* it means."
* -- Inigo Montoya
*******************************************/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users