Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 61df15c

Browse files
Add Python bindings for custom root id
1 parent b63ec83 commit 61df15c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

binds/python/bind_misc.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ void bind_misc(py::module& m) {
9292
.value("allow_root_bifurcations", morphio::enums::Option::ALLOW_ROOT_BIFURCATIONS)
9393
.value("allow_soma_bifurcations", morphio::enums::Option::ALLOW_SOMA_BIFURCATIONS)
9494
.value("allow_multiple_somata", morphio::enums::Option::ALLOW_MULTIPLE_SOMATA)
95+
.value("allow_custom_root_id", morphio::enums::Option::ALLOW_CUSTOM_ROOT_ID)
9596
.export_values();
9697

9798

@@ -118,7 +119,8 @@ void bind_misc(py::module& m) {
118119
.value("zero_diameter", morphio::enums::Warning::ZERO_DIAMETER)
119120
.value("root_bifurcation", morphio::enums::Warning::ROOT_BIFURCATION)
120121
.value("soma_bifurcation", morphio::enums::Warning::SOMA_BIFURCATION)
121-
.value("multiple_somata", morphio::enums::Warning::MULTIPLE_SOMATA);
122+
.value("multiple_somata", morphio::enums::Warning::MULTIPLE_SOMATA)
123+
.value("custom_root_id", morphio::enums::Warning::CUSTOM_ROOT_ID);
122124

123125
py::enum_<morphio::enums::SomaType>(m, "SomaType", py::arithmetic())
124126
.value("SOMA_UNDEFINED", morphio::enums::SomaType::SOMA_UNDEFINED)

0 commit comments

Comments
 (0)