Skip to content
Snippets Groups Projects
Unverified Commit 0b6d9680 authored by AxelCarayon's avatar AxelCarayon Committed by GitHub
Browse files

Merge pull request #16 from AxelCarayon/gestionInputs

Permet à l'utilisateur de choisir un fichier d'inputs (ou aucun)
parents cf135281 dc9519e0
No related branches found
No related tags found
No related merge requests found
......@@ -71,12 +71,16 @@ def folderExists(folderName) -> bool:
def searchForInputFolder() -> None:
global inputFolder
print("Searching for input folder...")
if folderExists("inputs"):
inputFolder = "inputs/"
print(f"{path}{inputFolder} found !")
answer = input("If you use input data, where are they stored ? Give the path from the root of the repository : ")
if answer == "":
warnings.warn("No input folder given, no input files will be registered")
else:
raise Exception(f"{path}/inputs folder does not exist")
if not folderExists("inputs"):
raise Exception(f"{path}/{answer} folder does not exist")
else:
if not answer.endswith("/"):
answer+="/"
inputFolder = answer
def searchForOutputFolder() -> None:
global outputFolder
......@@ -207,9 +211,10 @@ def run(folder) -> None :
runExperiment()
else:
captureExperiment()
scanInputFiles()
if inputFolder != None :
scanInputFiles()
if outputFolder != None :
scanOutputsGenerated()
checkGeneratedFiles()
writeInYaml()
#pushBranch()
\ No newline at end of file
pushBranch()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment