From 9901c3859ac9b7e140e7ed457f7df368d5ce4df9 Mon Sep 17 00:00:00 2001 From: TANG ZHIXIONG Date: Fri, 8 Sep 2023 23:04:22 +0800 Subject: [PATCH] update packedrtree, header-only version --- src/bindings/pybind11_packedrtree.cpp | 3 +-- src/nano_fmm/network.hpp | 2 +- src/source.cpp | 1 - tests/test_basic.py | 3 --- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/bindings/pybind11_packedrtree.cpp b/src/bindings/pybind11_packedrtree.cpp index acb8374..80804c8 100644 --- a/src/bindings/pybind11_packedrtree.cpp +++ b/src/bindings/pybind11_packedrtree.cpp @@ -4,7 +4,7 @@ #include #include -#include "packedrtree.h" +#include "packedrtree.hpp" #include "spdlog/spdlog.h" #include "nano_fmm/types.hpp" @@ -57,7 +57,6 @@ void bind_packedrtree(py::module &m) return self.intersects({minX, minY, maxX, maxY}); }, "minX"_a, "minY"_a, "maxX"_a, "maxY"_a) - .def("toVector", &NodeItem::toVector) .def("to_numpy", [](const NodeItem &self) { return Eigen::Vector4d(self.minX, self.minY, // diff --git a/src/nano_fmm/network.hpp b/src/nano_fmm/network.hpp index d23b297..8f111bc 100644 --- a/src/nano_fmm/network.hpp +++ b/src/nano_fmm/network.hpp @@ -8,7 +8,7 @@ #include "nano_fmm/network/ubodt.hpp" #include "nano_fmm/network/match_result.hpp" -#include "packedrtree.h" +#include "packedrtree.hpp" #include #include diff --git a/src/source.cpp b/src/source.cpp index bf624ba..e69de29 100644 --- a/src/source.cpp +++ b/src/source.cpp @@ -1 +0,0 @@ -#include "packedrtree.cpp" diff --git a/tests/test_basic.py b/tests/test_basic.py index f1eb211..6e9ca87 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -471,6 +471,3 @@ def test_logging(): output.read() fmm.utils.logging("hello eight") print(f"Captured: {output}") - - -test_logging()