M.instruments.v2 读取 DataFrame 出错,请问什么地方的问题


(mphyfin) #1
m1 = M.instruments.v2(
    start_date='2017-01-01',
    end_date='2017-06-01',
    market='CN_STOCK_A',
    max_count=0
)
m1.data.read_df()

[2018-04-12 10:35:52.685780] INFO: bigquant: instruments.v2 开始运行…
[2018-04-12 10:35:52.716224] INFO: bigquant: 命中缓存
[2018-04-12 10:35:52.718284] INFO: bigquant: instruments.v2 运行完成[0.032534s].

HDF5ExtError Traceback (most recent call last)
HDF5ExtError: HDF5 error back trace

File “H5F.c”, line 604, in H5Fopen
unable to open file
File “H5Fint.c”, line 1087, in H5F_open
unable to read superblock
File “H5Fsuper.c”, line 277, in H5F_super_read
file signature not found

End of HDF5 error back trace

Unable to open/create file ‘/var/app/data/bigquant/datasource/v2_t2/e/48/e48fb9ba3bbf11e8a3ef0242ac1100a3’

During handling of the above exception, another exception occurred:

OSError Traceback (most recent call last)
in ()
5 max_count=0
6 )
----> 7 m1.data.read_df()

OSError: HDF5 error back trace

File “H5F.c”, line 604, in H5Fopen
unable to open file
File “H5Fint.c”, line 1087, in H5F_open
unable to read superblock
File “H5Fsuper.c”, line 277, in H5F_super_read
file signature not found

End of HDF5 error back trace

Unable to open/create file ‘/var/app/data/bigquant/datasource/v2_t2/e/48/e48fb9ba3bbf11e8a3ef0242ac1100a3’


(mphyfin) #2

另外,像 M.instrumentsM.input_features ,从什么地方可以看到详细一点的用法文档?


(达达) #3

您好 数据的存储有dataframe格式和M缓存模式,使用m1.data.read_pickle()可以读取缓存的内容


(达达) #4

M是封装的模块,具体这方面内容请参考https://bigquant.com/docs/module_introduction.html