Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テーブルインスタンス(または「ノード」)を渡すアプリケーションがあります。途中のいくつかの場所で親ファイルのファイル名を知る必要があります。これを返す組み込みのメソッドが見つからないようです。出来ますか?
たとえば、以下の「get_parent_file」機能を探しています。
import tables f = tables.openFile("myfile.h5", 'r') t = f.root.a f = t.get_parent_file()
Looks like t._v_file.filename gives you the filename.
t._v_file.filename