MCPcopy Create free account
hub / github.com/InternScience/SciReason / from_json

Method from_json

opencompass/datasets/musr/tree.py:511–517  ·  view source on GitHub ↗
(cls, _js)

Source from the content-addressed store, hash-verified

509
510 @classmethod
511 def from_json(cls, _js):
512 js = deepcopy(_js)
513 js['nodes'] = [LogicNode.from_json(x) for x in js['nodes']]
514 js['root_structure'] = [
515 LogicNode.from_json(x) for x in js['root_structure']
516 ]
517 return cls(**js)
518
519
520if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

from_jsonMethod · 0.45

Tested by

no test coverage detected