rqalpha icon indicating copy to clipboard operation
rqalpha copied to clipboard

develop分支运行 test_f_mean_reverting.py 无法通过

Open snowzane opened this issue 9 years ago • 1 comments

比较奇怪的问题,在Python 2.7 下 只有这个测试没有通过(Python 3.x下都通过),并且只有 cash 和 total_value 在中间某些状态下有不同。

image

snowzane avatar Mar 25 '17 04:03 snowzane

找到问题了,Python 2.x 和 3.x 下 df.round 可能会产生不同的结果... 如图所示:

image

snowzane avatar Mar 25 '17 04:03 snowzane