Skip to content

Commit

Permalink
Merge branch 'SerializationFormat' of https://github.com/htm-communit…
Browse files Browse the repository at this point in the history
…y/htm.core into SerializationFormat
  • Loading branch information
dkeeney committed May 6, 2021
2 parents 0dc2de6 + ce1a2f4 commit 9baf674
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion bindings/py/cpp_src/bindings/algorithms/py_SpatialPooler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,11 @@ Argument output An SDR representing the winning columns after
buf << self;
return buf.str(); });

py_SpatialPooler.def_property_readonly("connections", &SpatialPooler::getConnections, "SP's internal connections (read-only) Warning: the Connections is subject to change.");
py_SpatialPooler.def_property_readonly("connections", &SpatialPooler::getConnections,
R"(Internal Connections object.
This attribute is READ ONLY. It returns a copy of the
Connections object and changes to it are discarded.
Warning: The Connections class API is subject to change.)");

// pickle
py_SpatialPooler.def(py::pickle(
Expand Down
7 changes: 4 additions & 3 deletions bindings/py/cpp_src/bindings/algorithms/py_TemporalMemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,10 @@ R"(Returns the total number of mini-columns.)");

py_HTM.def_property_readonly("connections", [](const HTM_t &self)
{ return self.connections; },
R"(Internal Connections object. Danger!
Modifying this may detrimentally effect the TM.
The Connections class API is subject to change.)");
R"(Internal Connections object.
This attribute is READ ONLY. It returns a copy of the
Connections object and changes to it are discarded.
Warning: The Connections class API is subject to change.)");

py_HTM.def_property_readonly("externalPredictiveInputs", [](const HTM_t &self)
{ return self.externalPredictiveInputs; },
Expand Down

0 comments on commit 9baf674

Please sign in to comment.