【问题标题】:How to change the an HDF5 table title (created using pytables)如何更改 HDF5 表标题(使用 pytables 创建)
【发布时间】:2013-01-21 11:58:52
【问题描述】:

我想知道是否有办法更改 HDF5 table 的标题,这是我在 python 代码中创建的,使用 pyTables。我给了错误的标题字符串,我现在也需要更改它,所以当我在 python 中再次打开它时,我可以根据它的标题将它与我加载的其他表区分开来。

【问题讨论】:

    标签: python hdf5 pytables


    【解决方案1】:

    您如何更改Node 上的_v_title 属性,然后再次保存hdf5 文件?

    table._v_title = 'new title'

    【讨论】:

    • table.title = 'new title' 就足够了。
    猜你喜欢
    • 2013-12-01
    • 2023-03-25
    • 1970-01-01
    • 2015-05-07
    • 2015-11-22
    • 2021-03-27
    • 2016-11-12
    • 1970-01-01
    • 2012-12-11
    相关资源
    最近更新 更多