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

Method populate

problem.py:716–720  ·  view source on GitHub ↗
(self, name: str, args: list[gm.Point])

Source from the content-addressed store, hash-verified

714 return self
715
716 def populate(self, name: str, args: list[gm.Point]) -> Dependency:
717 assert self.rule_name == CONSTRUCTION_RULE, self.rule_name
718 dep = Dependency(self.name, self.args, self.rule_name, self.level)
719 dep.why = list(self.why)
720 return dep
721
722 def why_me(self, g: Any, level: int) -> None:
723 """Figure out the dependencies predicates of self."""

Callers 4

add_pieceMethod · 0.45
add_collMethod · 0.45
add_congMethod · 0.45
add_cyclicMethod · 0.45

Calls 1

DependencyClass · 0.85

Tested by

no test coverage detected