Skip to content
Snippets Groups Projects
Commit 4b643aa7 authored by AxelCarayon's avatar AxelCarayon
Browse files

reorganisation mineure

parent 301c644c
Branches
Tags
No related merge requests found
......@@ -2,17 +2,21 @@ import numberGenerator
import outputModule
import yaml
PARAM_FILE = "params/parameters.yaml"
INPUT_FILE = "inputs/inputs.txt"
OUTPUT_FILE = "outputs/outputs.txt"
def getParameters() -> dict:
with open("parameters.yaml") as f:
with open(PARAM_FILE) as f:
return yaml.safe_load(f)
def saveInput(input):
with open("inputs/inputs.txt","w") as f:
with open(INPUT_FILE,"w") as f:
for i in input:
f.write(str(i)+"\n")
def saveOutput(output):
with open("outputs/outputs.txt","w") as f:
with open(OUTPUT_FILE,"w") as f:
f.write(str(output))
if __name__ == '__main__':
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment