I open 2 files and while the files are different as shown by the "Last
modif" from the print, the "Object Tree" data of the second
incorrectly is the same as the first. As h5ls indicates they are
clearly different.

Now, if I change the incorrect code and close 'a' before opening 'b'
the problem goes away. But, I want to access multiple files at the
same time. What is the proper way to do this?

Thanks,
Dan

---------------------------------------------------------------------------------
INCORRECT CODE

    a = openFile(path(r'y:\otm\h5\20090521\foo.h5'), mode = "r")
    b = openFile(path(r'y:\otm\h5\20090521\bar.h5'), mode = "r")

    print "**** FILE:", a.filename, a
    print "**** FILE:", b.filename, b

---------------------------------------------------------------------------------
OUTPUT

**** FILE: y:\otm\h5\20090521\foo.h5 y:\otm\h5\20090521\foo.h5 (File) ''
Last modif.: 'Wed Jun 10 11:55:02 2009'
Object Tree:
/ (RootGroup) ''
/OtmCancelEvent (Table(62,), zlib(5)) ''
/OtmFocusEvent (Table(10924,), zlib(5)) ''
/OtmOrder (Table(2282,), zlib(5)) ''
/OtmOrderEvent (Table(15421,), zlib(5)) ''
/OtmOrderLocation (Table(52,), zlib(5)) ''
/OtmTrade (Table(6329,), zlib(5)) ''
/OtmTradeEvent (Table(6329,), zlib(5)) ''

**** FILE: y:\otm\h5\20090521\bar.h5 y:\otm\h5\20090521\bar.h5 (File) ''
Last modif.: 'Wed Jun 10 11:54:03 2009'
Object Tree:
/ (RootGroup) ''
/OtmCancelEvent (Table(62,), zlib(5)) ''
/OtmFocusEvent (Table(10924,), zlib(5)) ''
/OtmOrder (Table(2282,), zlib(5)) ''
/OtmOrderEvent (Table(15421,), zlib(5)) ''
/OtmOrderLocation (Table(52,), zlib(5)) ''
/OtmTrade (Table(6329,), zlib(5)) ''
/OtmTradeEvent (Table(6329,), zlib(5)) ''

---------------------------------------------------------------------------------
H5LS
c:\dev\latest\py>h5ls y:\otm\h5\20090521\foo.h5
h5ls y:\otm\h5\20090521\foo.h5
OtmCancelEvent           Dataset {62/Inf}
OtmFocusEvent            Dataset {10924/Inf}
OtmOrder                 Dataset {2282/Inf}
OtmOrderEvent            Dataset {15421/Inf}
OtmOrderLocation         Dataset {52/Inf}
OtmTrade                 Dataset {6329/Inf}
OtmTradeEvent            Dataset {6329/Inf}

c:\dev\latest\py>h5ls y:\otm\h5\20090521\bar.h5
h5ls y:\otm\h5\20090521\bar.h5
OtmCancelEvent           Dataset {53/Inf}
OtmFocusEvent            Dataset {11218/Inf}
OtmOrder                 Dataset {3669/Inf}
OtmOrderEvent            Dataset {18092/Inf}
OtmOrderLocation         Dataset {650/Inf}
OtmTrade                 Dataset {3853/Inf}
OtmTradeEvent            Dataset {3853/Inf}



________________________________
Note: This email is for the confidential use of the named addressee(s) only and 
may contain proprietary, confidential or privileged information. If you are not 
the intended recipient, you are hereby notified that any review, dissemination 
or copying of this email is strictly prohibited, and to please notify the 
sender immediately and destroy this email and any attachments. Email 
transmission cannot be guaranteed to be secure or error-free. Jump Trading, 
therefore, does not make any guarantees as to the completeness or accuracy of 
this email or any attachments. This email is for informational purposes only 
and does not constitute a recommendation, offer, request or solicitation of any 
kind to buy, sell, subscribe, redeem or perform any type of transaction of a 
financial product.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to