MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / get

Method get

graph.py:584–589  ·  view source on GitHub ↗
(self, pointname: str, default_fn: Callable[str, Point])

Source from the content-addressed store, hash-verified

582 return result
583
584 def get(self, pointname: str, default_fn: Callable[str, Point]) -> Point:
585 if pointname in self._name2point:
586 return self._name2point[pointname]
587 if pointname in self._name2node:
588 return self._name2node[pointname]
589 return default_fn()
590
591 def new_node(self, oftype: Type[gm.Node], name: str = '') -> gm.Node:
592 node = oftype(name, self)

Callers 6

build_problemMethod · 0.95
range_fnMethod · 0.95
add_clauseMethod · 0.95
translateMethod · 0.80
saturate_or_goalFunction · 0.80
write_solutionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected