quantOS-org / JAQS

http://www.quantos.org/jaqs/
Other
616 stars 343 forks source link

example/alpha/ICCombine.py 有问题 #35

Open MrKaiWu opened 6 years ago

MrKaiWu commented 6 years ago

我用的是Python 3.6, Windows系统 发现需要进行以下修改 程序才能正常运行 首先,第45、46行:

ic_weight_hd5_path = '../../output/ICCombine', 'ic_weight.hd5'
custom_data_path = '../../output/ICCombine', 'custom_date.json'

我改为了:

ic_weight_hd5_path = '../../output/ICCombine/ic_weight.hd5'
custom_data_path = '../../output/ICCombine/custom_date.json'

第二,在220行之后,还要添加:

dv.load_dataview(folder_path=dataview_dir_path)

需要把dataview重新加载一下,否则亲测get_snapshot函数无法获得通过append_df添加的列。不知道这个算不算bug。如果每次都要重新加载,未免有些蛋疼。