Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions src/communication/communicator_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,9 @@ namespace py = pybind11;
void bind_communicator_manager(pybind11::module_ &m)
{
py::class_<communicator_manager>(m, "CommunicatorManager")
.def_property_readonly(
"backends",
[] (const communicator_manager &manager) -> std::vector<std::string>
{
std::vector<std::string> backends;
manager.enumerate_backends(backends);
return backends;
}
)
.def(
"create_world_communicator",
&communicator_manager::create_world_communicator,
py::arg("name"),
py::keep_alive<0, 1>()
)
.def(
"create_preferred_world_communicator",
&communicator_manager::create_preferred_world_communicator,
&communicator_manager::create_world_communicator,
py::keep_alive<0, 1>()
);

Expand Down
6 changes: 0 additions & 6 deletions tests/communication/test_communicator_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ def test_always_returns_same_communicator_manager(__setup_service_catalog):
cm2 = xmipp4.communication.get_communicator_manager(__setup_service_catalog)
assert cm1 is cm2

def test_returns_default_backends(__setup_service_catalog):
cm = xmipp4.communication.get_communicator_manager(
__setup_service_catalog
)
assert cm.backends == ['dummy']

@pytest.fixture
def __setup_service_catalog():
return xmipp4.ServiceCatalog()
Loading