Skip to content

Commit

Permalink
ambigous solve call fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathf committed Dec 4, 2024
1 parent ec593b0 commit ce64ecf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/bind/input/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ void init_input(py::module_ &m) {
&vroom::Input::has_homogeneous_locations)
.def("has_homogeneous_profiles", &vroom::Input::has_homogeneous_profiles)
.def("has_homogeneous_costs", &vroom::Input::has_homogeneous_costs)
.def("_solve", &vroom::Input::solve, "Solve problem.",
py::arg("exploration_level"),
py::arg("nb_threads") = 1,
py::arg("timeout") = vroom::Timeout(),
py::arg("h_param") = std::vector<vroom::HeuristicParameters>())
.def("_solve",
[](vroom::Input &self, unsigned exploration_level, unsigned nb_threads, const vroom::Timeout& timeout, const std::vector<vroom::HeuristicParameters> h_param) {
return self.solve(exploration_level, nb_threads, timeout, h_param);

Check warning on line 57 in src/bind/input/input.cpp

View check run for this annotation

Codecov / codecov/patch

src/bind/input/input.cpp#L54-L57

Added lines #L54 - L57 were not covered by tests
},
"Solve routing problem",
py::arg("exploration_level"), py::arg("nb_threads"), py::arg("timeout"), py::arg("h_param")
)

Check warning on line 61 in src/bind/input/input.cpp

View check run for this annotation

Codecov / codecov/patch

src/bind/input/input.cpp#L61

Added line #L61 was not covered by tests
.def("check", &vroom::Input::check);
}

0 comments on commit ce64ecf

Please sign in to comment.