求助,开发环境可以通过,模拟交易就报错,有大神么

新手专区
标签: #<Tag:0x00007f0dc3b11ea8>

(hello10000) #1

[2021-03-13 18:48:38.852639] INFO moduleinvoker: instruments.v2 开始运行…
[2021-03-13 18:48:38.861985] INFO moduleinvoker: 命中缓存
[2021-03-13 18:48:38.862854] INFO moduleinvoker: instruments.v2 运行完成[0.010279s].
[2021-03-13 18:48:38.869220] INFO moduleinvoker: advanced_auto_labeler.v2 开始运行…
[2021-03-13 18:48:39.120773] INFO 自动标注(股票): 加载历史数据: 4186 行
[2021-03-13 18:48:39.121689] INFO 自动标注(股票): 开始标注 …
[2021-03-13 18:48:39.133535] ERROR moduleinvoker: module name: advanced_auto_labeler, module version: v2, trackeback: ValueError: Bin edges must be unique: array([-inf, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, nan, nan, nan, nan, nan, nan, nan, inf]).
You can drop duplicate edges by setting the ‘duplicates’ kwarg


ValueError Traceback (most recent call last)
in
72 )
73
—> 74 m20 = M.advanced_auto_labeler.v2(
75 instruments=m1.data,
76 label_expr="""# #号开始的表示注释

/var/app/enabled/biglearning/module2/common/modulemanagerv2.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.modulemanagerv2.BigQuantModuleVersion.call()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker.module_invoke()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._invoke_with_cache()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._invoke_with_cache()

/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._module_run()

/var/app/enabled/biglearning/module2/modules/advanced_auto_labeler/v2/init.cpython-38-x86_64-linux-gnu.so in biglearning.module2.modules.advanced_auto_labeler.v2.init.BigQuantModule.run()

/var/app/enabled/bigexpr/impl/expression.cpython-38-x86_64-linux-gnu.so in bigexpr.impl.expression.evaluate()

/var/app/enabled/bigexpr/impl/expression.cpython-38-x86_64-linux-gnu.so in bigexpr.impl.expression.__evaluate_ast()

/var/app/enabled/bigexpr/impl/functions.cpython-38-x86_64-linux-gnu.so in bigexpr.impl.functions.UserFunctions.all_wbins()

/usr/local/python3/lib/python3.8/site-packages/pandas/core/reshape/tile.py in cut(x, bins, right, labels, retbins, precision, include_lowest, duplicates, ordered)
271 raise ValueError(“bins must increase monotonically.”)
272
–> 273 fac, bins = _bins_to_cuts(
274 x,
275 bins,

/usr/local/python3/lib/python3.8/site-packages/pandas/core/reshape/tile.py in _bins_to_cuts(x, bins, right, labels, precision, include_lowest, dtype, duplicates, ordered)
397 if len(unique_bins) < len(bins) and len(bins) != 2:
398 if duplicates == “raise”:
–> 399 raise ValueError(
400 f"Bin edges must be unique: {repr(bins)}.\n"
401 f"You can drop duplicate edges by setting the ‘duplicates’ kwarg"

ValueError: Bin edges must be unique: array([-inf, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan,
nan, nan, nan, nan, nan, nan, nan, nan, nan, inf]).
You can drop duplicate edges by setting the ‘duplicates’ kwarg


(lu0817) #2

你选的股池,出现暂停交易的或者停牌的。导致数据是空的