Files
ai_formatter/tard_wrangler.py
2024-10-02 22:31:52 +02:00

19 lines
423 B
Python

import subprocess
import numpy as np
from config import *
def accumulate(path : str, output : str) -> None:
process = subprocess.Popen(
"converter.out accumulate " + path + " > " + output,
shell=True,
)
def build(path : str, prediction : np.array):
with open("build_file", "wb") as file:
file.write(prediction)
process = subprocess.Popen(
"converter.out build " + path + " > out.c",
shell=True,
)