Merge branch release-2021 into master
[alexxy/gromacs.git] / python_packaging / src / gmxapi / export_system.cpp
index 25d6206f384b23908754014a6092d4129b54a8d9..b504ccb9e74599b62bc3af6d1c91e722ecd7b33f 100644 (file)
@@ -75,21 +75,24 @@ void export_system(py::module& m)
     // required to maintain and to pass to the API.
     py::class_<::gmxapi::Session, std::shared_ptr<::gmxapi::Session>> session(m, "MDSession");
     session.def("run", &::gmxapi::Session::run, "Run the simulation workflow");
-    session.def("close", &::gmxapi::Session::close,
+    session.def("close",
+                &::gmxapi::Session::close,
                 "Shut down the execution environment and close the session.");
 
     // Export system container class
     py::class_<System, std::shared_ptr<System>> system(m, "MDSystem");
-    system.def("launch",
-               [](System* system, std::shared_ptr<PyContext> context) {
-                   auto work       = gmxapi::getWork(*system->get());
-                   auto newSession = context->launch(*work);
-                   return newSession;
-               },
-               "Launch the configured workflow in the provided context.");
+    system.def(
+            "launch",
+            [](System* system, std::shared_ptr<PyContext> context) {
+                auto work       = gmxapi::getWork(*system->get());
+                auto newSession = context->launch(*work);
+                return newSession;
+            },
+            "Launch the configured workflow in the provided context.");
 
     // Module-level function
-    m.def("from_tpr", &gmxpy::from_tpr,
+    m.def("from_tpr",
+          &gmxpy::from_tpr,
           "Return a system container initialized from the given input record.");
 }