MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / create

Method create

Utility/Sandbox.py:66–75  ·  view source on GitHub ↗
(cls, project_root: Path, project_name: str)

Source from the content-addressed store, hash-verified

64
65 @classmethod
66 def create(cls, project_root: Path, project_name: str):
67 timestr = cls.__get_curr_time()
68 try: gitver = cls.__get_git_version()
69 except: gitver = "NOT_AVAILABLE"
70 cmd = cls.__get_sys_command()
71
72 box = cls(Path(project_root, project_name, timestr))
73 with box.open("metadata.yaml", "w") as f:
74 yaml.dump({"time": timestr, "git_version": gitver, "command": cmd}, f)
75 return box
76
77 @classmethod
78 def load(cls, root: Path | str):

Callers 8

MACVO.pyFile · 0.80
new_childMethod · 0.80
Experiment_DPVO.pyFile · 0.80
DPVO.pyFile · 0.80
TartanVO.pyFile · 0.80

Calls 4

__get_curr_timeMethod · 0.80
__get_git_versionMethod · 0.80
__get_sys_commandMethod · 0.80
openMethod · 0.80

Tested by

no test coverage detected