From c3de13470b312968f8b594a44bf9042da58a3008 Mon Sep 17 00:00:00 2001 From: DinoBektesevic Date: Sun, 24 Sep 2023 23:16:53 -0700 Subject: [PATCH] Move namespace definition do protected section. --- src/kbmod/search/common.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/kbmod/search/common.h b/src/kbmod/search/common.h index 24e828141..c2fa124a8 100644 --- a/src/kbmod/search/common.h +++ b/src/kbmod/search/common.h @@ -6,9 +6,6 @@ #include "pydocs/common_docs.h" -namespace py = pybind11; - - namespace search { #ifdef HAVE_CUDA constexpr bool HAVE_GPU = true; @@ -193,6 +190,8 @@ namespace search { }; #ifdef Py_PYTHON_H + namespace py = pybind11; + static void trajectory_bindings(py::module &m) { using tj = Trajectory;