Skip to content

Commit

Permalink
重新引出 TradeRecordList/PositionRecordList至 python,否则 to_df 方法失效
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Apr 5, 2024
1 parent 9710729 commit 5ae5e05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hikyuu_pywrap/bind_stl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ void export_bind_stl(py::module& m) {
py::bind_vector<TransList>(m, "TransList");
// py::bind_vector<BorrowRecordList>(m, "BorrowRecordList");
// py::bind_vector<LoanRecordList>(m, "LoanRecordList");
// py::bind_vector<PositionRecordList>(m, "PositionRecordList");
py::bind_vector<PositionRecordList>(m, "PositionRecordList");
// py::bind_vector<FundsList>(m, "FundsList");
// py::bind_vector<TradeRecordList>(m, "TradeRecordList");
py::bind_vector<TradeRecordList>(m, "TradeRecordList");
py::bind_vector<SystemWeightList>(m, "SystemWeightList");
// py::bind_vector<SystemList>(m, "SystemList");
py::bind_vector<ScoreRecordList>(m, "ScoreRecordList");
Expand Down
4 changes: 2 additions & 2 deletions hikyuu_pywrap/bind_stl.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ PYBIND11_MAKE_OPAQUE(TimeLineList);
PYBIND11_MAKE_OPAQUE(TransList);
// PYBIND11_MAKE_OPAQUE(BorrowRecordList);
// PYBIND11_MAKE_OPAQUE(LoanRecordList);
// PYBIND11_MAKE_OPAQUE(PositionRecordList);
PYBIND11_MAKE_OPAQUE(PositionRecordList);
// PYBIND11_MAKE_OPAQUE(FundsList);
// PYBIND11_MAKE_OPAQUE(TradeRecordList);
PYBIND11_MAKE_OPAQUE(TradeRecordList);
PYBIND11_MAKE_OPAQUE(SystemWeightList);
// PYBIND11_MAKE_OPAQUE(SystemList);
PYBIND11_MAKE_OPAQUE(ScoreRecordList);

0 comments on commit 5ae5e05

Please sign in to comment.