MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / write_meta

Function write_meta

tests/dump_phase7_reference.py:727–732  ·  view source on GitHub ↗
(case_dir: str, case: Phase7Case)

Source from the content-addressed store, hash-verified

725
726
727def write_meta(case_dir: str, case: Phase7Case) -> None:
728 with open(os.path.join(case_dir, "meta.txt"), "w", encoding="utf-8") as f:
729 f.write(f"num_slots={len(case.mem_cases)}\n")
730 for i, tpos in enumerate(case.spatial_tpos):
731 f.write(f"slot{i}_spatial_tpos={tpos}\n")
732 f.write(f"slot{i}_ptr_tpos={case.ptr_tpos[i]}\n")
733
734
735def main() -> None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected