Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reproductionTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMAC
Reproductibilité des recherches dans SMAC
reproductionTool
Commits
dc9519e0
Commit
dc9519e0
authored
3 years ago
by
AxelCarayon
Browse files
Options
Downloads
Patches
Plain Diff
Permet à l'utilisateur de choisir un fichier d'inputs (ou aucun)
parent
cf135281
Branches
Branches containing commit
No related tags found
1 merge request
!16
Permet à l'utilisateur de choisir un fichier d'inputs (ou aucun)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
registerExperiment.py
+12
-7
12 additions, 7 deletions
registerExperiment.py
with
12 additions
and
7 deletions
registerExperiment.py
+
12
−
7
View file @
dc9519e0
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment