Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/clips/pattern
/ _set_weight
Method
_set_weight
pattern/vector/__init__.py:815–817 ·
view source on GitHub ↗
(self, w)
Source
from the content-addressed store, hash-verified
813
def
_get_weight(self):
814
return
self._weight
815
def
_set_weight(self, w):
816
self._weight = w
817
self._update()
# Clear the cache.
818
819
weight = property(_get_weight, _set_weight)
820
Callers
nothing calls this directly
Calls
1
_update
Method · 0.95
Tested by
no test coverage detected