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

Method from_txt

problem.py:73–80  ·  view source on GitHub ↗
(cls, data: str)

Source from the content-addressed store, hash-verified

71
72 @classmethod
73 def from_txt(cls, data: str) -> Clause:
74 if data == ' =':
75 return Clause([], [])
76 points, constructions = data.split(' = ')
77 return Clause(
78 points.split(' '),
79 [Construction.from_txt(c) for c in constructions.split(', ')],
80 )
81
82 def __init__(self, points: list[str], constructions: list[Construction]):
83 self.points = []

Callers 15

from_txt_fileMethod · 0.45
from_txtMethod · 0.45
from_stringMethod · 0.45
from_txtMethod · 0.45
from_stringMethod · 0.45
from_txtMethod · 0.45

Calls 1

ClauseClass · 0.85