Skip to content

Commit

Permalink
Add Python bindings for custom root id
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet committed Dec 16, 2022
1 parent b63ec83 commit 61df15c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion binds/python/bind_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ void bind_misc(py::module& m) {
.value("allow_root_bifurcations", morphio::enums::Option::ALLOW_ROOT_BIFURCATIONS)
.value("allow_soma_bifurcations", morphio::enums::Option::ALLOW_SOMA_BIFURCATIONS)
.value("allow_multiple_somata", morphio::enums::Option::ALLOW_MULTIPLE_SOMATA)
.value("allow_custom_root_id", morphio::enums::Option::ALLOW_CUSTOM_ROOT_ID)
.export_values();


Expand All @@ -118,7 +119,8 @@ void bind_misc(py::module& m) {
.value("zero_diameter", morphio::enums::Warning::ZERO_DIAMETER)
.value("root_bifurcation", morphio::enums::Warning::ROOT_BIFURCATION)
.value("soma_bifurcation", morphio::enums::Warning::SOMA_BIFURCATION)
.value("multiple_somata", morphio::enums::Warning::MULTIPLE_SOMATA);
.value("multiple_somata", morphio::enums::Warning::MULTIPLE_SOMATA)
.value("custom_root_id", morphio::enums::Warning::CUSTOM_ROOT_ID);

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

0 comments on commit 61df15c

Please sign in to comment.