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

reorganisation mineure

parent 301c644c
No related branches found
No related tags found
No related merge requests found
...@@ -2,17 +2,21 @@ import numberGenerator ...@@ -2,17 +2,21 @@ import numberGenerator
import outputModule import outputModule
import yaml import yaml
PARAM_FILE = "params/parameters.yaml"
INPUT_FILE = "inputs/inputs.txt"
OUTPUT_FILE = "outputs/outputs.txt"
def getParameters() -> dict: def getParameters() -> dict:
with open("parameters.yaml") as f: with open(PARAM_FILE) as f:
return yaml.safe_load(f) return yaml.safe_load(f)
def saveInput(input): def saveInput(input):
with open("inputs/inputs.txt","w") as f: with open(INPUT_FILE,"w") as f:
for i in input: for i in input:
f.write(str(i)+"\n") f.write(str(i)+"\n")
def saveOutput(output): def saveOutput(output):
with open("outputs/outputs.txt","w") as f: with open(OUTPUT_FILE,"w") as f:
f.write(str(output)) f.write(str(output))
if __name__ == '__main__': 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