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

Method from_txt_file

problem.py:301–304  ·  view source on GitHub ↗
(cls, fname: str, to_dict: bool = False)

Source from the content-addressed store, hash-verified

299
300 @classmethod
301 def from_txt_file(cls, fname: str, to_dict: bool = False) -> Definition:
302 with open(fname, 'r') as f:
303 lines = f.read()
304 return cls.from_string(lines, to_dict)
305
306 @classmethod
307 def from_string(cls, string: str, to_dict: bool = False) -> Definition:

Callers

nothing calls this directly

Calls 1

from_stringMethod · 0.45

Tested by

no test coverage detected