@@ -30,15 +30,16 @@ PyBind11 bindings for Engine classes
3030#include < pybind11/stl.h>
3131
3232#include < htm/os/Timer.hpp>
33-
3433#include < htm/ntypes/Array.hpp>
34+ #include < htm/utils/Log.hpp>
3535
3636#include < htm/engine/Link.hpp>
3737#include < htm/engine/Network.hpp>
3838#include < htm/engine/Region.hpp>
3939#include < htm/engine/Input.hpp>
4040#include < htm/engine/Spec.hpp>
4141#include < htm/types/Sdr.hpp>
42+
4243#include < plugin/PyBindRegion.hpp>
4344#include < plugin/RegisteredRegionImplPy.hpp>
4445
@@ -468,13 +469,13 @@ namespace htm_ext
468469 , py::arg (" srcOutput" ) = " " , py::arg (" destInput" ) = " "
469470 , py::arg (" propagationDelay" ) = 0 );
470471
471- py::enum_<LogLevel>(m, " LogLevel" , py::arithmetic () , " An enumeration of logging levels." )
472- .value (" None" , LogLevel::LogLevel_None) // default
473- .value (" Minimal" , LogLevel::LogLevel_Minimal)
474- .value (" Normal" , LogLevel::LogLevel_Normal)
475- .value (" Verbose" , LogLevel::LogLevel_Verbose)
472+ py::enum_<htm:: LogLevel>(m, " LogLevel" , " An enumeration of logging levels." )
473+ .value (" None" , htm:: LogLevel::LogLevel_None) // default
474+ .value (" Minimal" , htm:: LogLevel::LogLevel_Minimal)
475+ .value (" Normal" , htm:: LogLevel::LogLevel_Normal)
476+ .value (" Verbose" , htm:: LogLevel::LogLevel_Verbose)
476477 .export_values ();
477- py_Network.def (" setLogLevel" , &htm::Network::setLogLevel);
478+ py_Network.def_static (" setLogLevel" , &htm::Network::setLogLevel, py::arg ( " level " ) = htm::LogLevel::LogLevel_None );
478479
479480
480481 // plugin registration
0 commit comments