From 36685edf60934697a3fa796b0f00c76b3ed3fb90 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 5 Jan 2023 14:49:36 +0100 Subject: [PATCH] Reindent. --- src/bindings/python/simgrid_python.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index 3556d98e5a..62157e429e 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -118,14 +118,12 @@ PYBIND11_MODULE(simgrid, m) py::call_guard()) .def("exec_async", py::overload_cast(&simgrid::s4u::this_actor::exec_async), py::call_guard()) - .def("parallel_execute", &simgrid::s4u::this_actor::parallel_execute, - py::call_guard(), + .def("parallel_execute", &simgrid::s4u::this_actor::parallel_execute, py::call_guard(), "Run a parallel task (requires the 'ptask_L07' model)") .def("exec_init", py::overload_cast&, const std::vector&, - const std::vector&> (&simgrid::s4u::this_actor::exec_init), - py::call_guard(), - "Initiate a parallel task (requires the 'ptask_L07' model)") + const std::vector&>(&simgrid::s4u::this_actor::exec_init), + py::call_guard(), "Initiate a parallel task (requires the 'ptask_L07' model)") .def("get_host", &simgrid::s4u::this_actor::get_host, "Retrieves host on which the current actor is located") .def("set_host", &simgrid::s4u::this_actor::set_host, py::call_guard(), "Moves the current actor to another host.", py::arg("dest")) @@ -226,10 +224,8 @@ PYBIND11_MODULE(simgrid, m) "Change one of SimGrid's configurations") .def("load_platform", &Engine::load_platform, "Load a platform file describing the environment") .def("load_deployment", &Engine::load_deployment, "Load a deployment file and launch the actors that it contains") - .def("mailbox_by_name_or_create", &Engine::mailbox_by_name_or_create, - py::call_guard(), - py::arg("name"), - "Find a mailbox from its name or create one if it does not exist") + .def("mailbox_by_name_or_create", &Engine::mailbox_by_name_or_create, py::call_guard(), + py::arg("name"), "Find a mailbox from its name or create one if it does not exist") .def("run", &Engine::run, py::call_guard(), "Run the simulation until its end") .def("run_until", py::overload_cast(&Engine::run_until, py::const_), py::call_guard(), "Run the simulation until the given date", @@ -908,5 +904,6 @@ PYBIND11_MODULE(simgrid, m) "Suspend that actor, that is blocked until resume()ed by another actor.") .def("resume", &Actor::resume, py::call_guard(), "Resume that actor, that was previously suspend()ed.") - .def_static("kill_all", &Actor::kill_all, py::call_guard(), "Kill all actors but the caller."); + .def_static("kill_all", &Actor::kill_all, py::call_guard(), + "Kill all actors but the caller."); } -- 2.20.1