From: Uwe M. <uwe...@df...> - 2012-05-18 13:00:18
|
Hi, I have several leaf nodes of the same table dtype: class VideoNode(tables.IsDescription): ... Not all tables in the hdf5 file are of the same type, however. How do I iterate over all leafes which are tables of the above class, while ignoring tables with different signatures? i.e. I'd like to write something like: <code> f = tables.openFile(...) foo = f.walkNodes('/', classname='VideoNode') </code> which does not work because only the class name is "Table"... or <code> bar = filter(isinstance(x, VideoNode) for x in f.walkNodes('/', 'Table'))) </code> which does not work, because x is never an instance of VideoNode. Any ideas? Thanks in advance Uwe |