diff --git a/cmake/Standalone_CMakeLists.cmake b/cmake/Standalone_CMakeLists.cmake index 1ef49dc20..4d0d2b3ce 100644 --- a/cmake/Standalone_CMakeLists.cmake +++ b/cmake/Standalone_CMakeLists.cmake @@ -75,7 +75,7 @@ IF(ADD_PYTHON) MESSAGE(STATUS "Clone pybind11") execute_process( - COMMAND git clone https://github.com/pybind/pybind11 ${CMAKE_CURRENT_SOURCE_DIR}/pybind11 + COMMAND git clone https://github.com/pybind/pybind11 --branch v2.2.4 ${CMAKE_CURRENT_SOURCE_DIR}/pybind11 OUTPUT_VARIABLE git_output ERROR_VARIABLE git_error ) diff --git a/private/PROPOSAL/Propagator.cxx b/private/PROPOSAL/Propagator.cxx index 8f5d68036..a0e6b459b 100644 --- a/private/PROPOSAL/Propagator.cxx +++ b/private/PROPOSAL/Propagator.cxx @@ -791,7 +791,7 @@ Geometry* Propagator::ParseGeometryConifg(const boost::property_tree::ptree& pt) std::string origin_str = "origin"; std::string outer_radius_str = "outer_radius"; std::string inner_radius_str = "inner_radius"; - std::string lenght_str = "lenght"; + std::string lenght_str = "length"; std::string width_str = "width"; std::string height_str = "height"; diff --git a/private/python/pybindings.cxx b/private/python/pybindings.cxx index 34df1dfa7..4943f7d7b 100644 --- a/private/python/pybindings.cxx +++ b/private/python/pybindings.cxx @@ -849,8 +849,10 @@ PYBIND11_MODULE(pyPROPOSAL, m) .def(py::init&, const Geometry&>(), py::arg("particle_def"), py::arg("sector_defs"), py::arg("detector")) .def(py::init(), py::arg("particle_def"), py::arg("config_file")) + .def(py::init(), py::arg("Propagator")) .def("propagate", &Propagator::Propagate, py::arg("max_distance_cm") = 1e20, py::return_value_policy::reference) .def_property_readonly("particle", &Propagator::GetParticle, "Get the internal created particle to modify its properties") + .def_property_readonly("sector", &Propagator::GetCurrentSector, "Get the current sector") .def_property_readonly("detector", &Propagator::GetDetector, "Get the detector geometry"); // --------------------------------------------------------------------- //