Skip to content

Commit

Permalink
引出add_sys,add_sys_list接口待用
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Sep 13, 2024
1 parent ebc0356 commit 0828b86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hikyuu_pywrap/trade_sys/_Selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ void export_Selector(py::module& m) {
:return: 选取的系统实例列表
:rtype: SystemList)")

.def("add_sys", &SelectorBase::addSystem)
.def("add_sys_list", &SelectorBase::addSystemList)

.def("__add__",
[](const SelectorPtr& self, const SelectorPtr& other) { return self + other; })
.def("__add__", [](const SelectorPtr& self, double other) { return self + other; })
Expand Down

0 comments on commit 0828b86

Please sign in to comment.