Hi Elias,

A Dijous 16 Març 2006 23:42, [EMAIL PROTECTED] va escriure:
> I am working with large finite element models and results data from
> hundreds of loading condition. The amount of data is taxing our resources
> and what I'm doing probably wouldn't be possible without HDF5, nor easy
> without PyTables.
>
> There may be cases where different sets of load conditions could be in
> separate files, and yet they would all share the same finite element (FE)
> model data, ie, geometry, materials, etc. Instead of each file containing
> it's own Group of FE data, I could just H5Fmount the common geometry from a
> single file to be shared by any number of results files.

Yeah, your point is very valid. As I said before, we plan to look into that.

>
> Having given this more thought, I can see how I would be able to accomplish
> this by using an attribute in each results file to store a pathname of the
> file containing the common data. However, the H5Fmount would be nice
> because it is transparent and only one file handle would be needed.

Yes, that's another possibility. Something like:

file1 = tables.openFile('file1.h5')
# Now, let's suppose that the file you want to share is in
# root._v_attrs.common. You can access it easily with:
filecommon = tables.openFile(file1.root._v_attrs.commom)
# Now, you have all the shared data avalaible in 'filecommon' handle.

What you are suggesting, I think, is something like:
mountpoint = file1.mountFile('/common', file1.root._v_attrs.commom)

for having access to the shared file in file1.root.common.

Mmm, now that I think more about this, I'm not so sure that the later
approach would be much better than the former. Do you envision some
important advantage for the "mount thing"?.

Regards,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"



-------------------------------------------------------
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&kid0944&bid$1720&dat1642
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to