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

Method __init__

problem.py:82–95  ·  view source on GitHub ↗
(self, points: list[str], constructions: list[Construction])

Source from the content-addressed store, hash-verified

80 )
81
82 def __init__(self, points: list[str], constructions: list[Construction]):
83 self.points = []
84 self.nums = []
85
86 for p in points:
87 num = None
88 if isinstance(p, str) and '@' in p:
89 p, num = p.split('@')
90 x, y = num.split('_')
91 num = float(x), float(y)
92 self.points.append(p)
93 self.nums.append(num)
94
95 self.constructions = constructions
96
97 def translate(self, mapping: dict[str, str]) -> Clause:
98 points0 = []

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected