@@ -30,8 +30,8 @@ namespace py = pybind11;
3030using dtlmod::DTL;
3131using dtlmod::Engine;
3232using dtlmod::Stream;
33- using dtlmod::Variable;
3433using dtlmod::Transport;
34+ using dtlmod::Variable;
3535
3636XBT_LOG_NEW_DEFAULT_CATEGORY (python, " python" );
3737
@@ -162,26 +162,28 @@ PYBIND11_MODULE(dtlmod, m)
162162 py::class_<Engine, std::shared_ptr<Engine>> engine (
163163 m, " Engine" , " An Engine defines how data is transferred between the applications and the DTL" );
164164 engine.def_property_readonly (" name" , &Engine::get_name, " The name of the Engine (read-only)" )
165- .def (" begin_transaction" , &Engine::begin_transaction, py::call_guard<py::gil_scoped_release>(), " Begin a transaction on this Engine" )
166- .def (" put" , &Engine::put, py::arg (" var" ), py::call_guard<py::gil_scoped_release>(), py::arg (" simulated_size_in_bytes" ),
167- " Put a Variable in the DTL using this Engine" )
168- .def (" get" , &Engine::get, py::arg (" var" ), py::call_guard<py::gil_scoped_release>(), " Get a Variable from the DTL using this Engine" )
169- .def (" end_transaction" , &Engine::end_transaction, py::call_guard<py::gil_scoped_release>(), " End a transaction on this Engine" )
165+ .def (" begin_transaction" , &Engine::begin_transaction, py::call_guard<py::gil_scoped_release>(),
166+ " Begin a transaction on this Engine" )
167+ .def (" put" , &Engine::put, py::arg (" var" ), py::call_guard<py::gil_scoped_release>(),
168+ py::arg (" simulated_size_in_bytes" ), " Put a Variable in the DTL using this Engine" )
169+ .def (" get" , &Engine::get, py::arg (" var" ), py::call_guard<py::gil_scoped_release>(),
170+ " Get a Variable from the DTL using this Engine" )
171+ .def (" end_transaction" , &Engine::end_transaction, py::call_guard<py::gil_scoped_release>(),
172+ " End a transaction on this Engine" )
170173 .def_property_readonly (" current_transaction" , &Engine::get_current_transaction,
171174 " The id of the current transaction on this Engine (read-only)" )
172175 .def (" close" , &Engine::close, py::call_guard<py::gil_scoped_release>(), " Close this Engine" );
173176
174- py::enum_<Engine::Type>(engine, " Type" , " The type of Engine" )
177+ py::enum_<Engine::Type>(engine, " Type" , " The type of Engine" )
175178 .value (" Undefined" , Engine::Type::Undefined)
176179 .value (" Staging" , Engine::Type::Staging)
177180 .value (" File" , Engine::Type::File);
178181
179- /* Class Transport */
180- py::class_<Transport> transport (
181- m, " Transport" , " The transport method used by an Engine to transfer data" );
182- py::enum_<Transport::Method>(transport, " Method" , " The transport method used by the Engine" )
183- .value (" Undefined" , Transport::Method::Undefined)
184- .value (" MQ" , Transport::Method::MQ)
185- .value (" Mailbox" , Transport::Method::Mailbox)
186- .value (" File" , Transport::Method::File);
182+ /* Class Transport */
183+ py::class_<Transport> transport (m, " Transport" , " The transport method used by an Engine to transfer data" );
184+ py::enum_<Transport::Method>(transport, " Method" , " The transport method used by the Engine" )
185+ .value (" Undefined" , Transport::Method::Undefined)
186+ .value (" MQ" , Transport::Method::MQ)
187+ .value (" Mailbox" , Transport::Method::Mailbox)
188+ .value (" File" , Transport::Method::File);
187189}
0 commit comments