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
a2eddec8
Commit
a2eddec8
authored
3 years ago
by
AxelCarayon
Browse files
Options
Downloads
Patches
Plain Diff
ajout verbose + renommage pour + de lisibilité
parent
338df9b8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.py
+4
-1
4 additions, 1 deletion
main.py
registerExperiment.py
+3
-0
3 additions, 0 deletions
registerExperiment.py
with
7 additions
and
1 deletion
reprodExperiment
.py
→
main
.py
+
4
−
1
View file @
a2eddec8
...
@@ -16,4 +16,7 @@ if (__name__ == "__main__"):
...
@@ -16,4 +16,7 @@ if (__name__ == "__main__"):
if
not
(
args
.
branch
):
if
not
(
args
.
branch
):
print
(
"
Please specify a branch
"
)
print
(
"
Please specify a branch
"
)
exit
(
1
)
exit
(
1
)
loadExperiment
.
run
(
args
.
load
,
args
.
branch
)
loadExperiment
.
run
(
args
.
load
,
args
.
branch
)
\ No newline at end of file
if
(
not
args
.
save
)
and
(
not
args
.
load
):
print
(
"
Please specify an action
"
)
exit
(
1
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
registerExperiment.py
+
3
−
0
View file @
a2eddec8
...
@@ -113,14 +113,17 @@ def branchExists(branchName) -> bool:
...
@@ -113,14 +113,17 @@ def branchExists(branchName) -> bool:
return
branchName
in
repository
.
references
return
branchName
in
repository
.
references
def
pushBranch
(
version
=
1
)
->
None
:
def
pushBranch
(
version
=
1
)
->
None
:
print
(
"
Pushing branch...
"
)
while
(
branchExists
(
f
"
{
experimentName
}
Experiment
{
version
}
"
)):
while
(
branchExists
(
f
"
{
experimentName
}
Experiment
{
version
}
"
)):
version
+=
1
version
+=
1
else
:
else
:
print
(
f
"
creating
{
experimentName
}
Experiment
{
version
}
branch and pushing changes to it ...
"
)
repository
.
git
.
checkout
(
'
-b
'
,
f
"
{
experimentName
}
Experiment
{
version
}
"
)
repository
.
git
.
checkout
(
'
-b
'
,
f
"
{
experimentName
}
Experiment
{
version
}
"
)
repository
.
git
.
add
(
all
=
True
)
repository
.
git
.
add
(
all
=
True
)
repository
.
git
.
commit
(
m
=
f
"
{
experimentName
}
Experiment
{
version
}
"
)
repository
.
git
.
commit
(
m
=
f
"
{
experimentName
}
Experiment
{
version
}
"
)
repository
.
git
.
push
(
'
--set-upstream
'
,
repository
.
remote
().
name
,
f
"
{
experimentName
}
Experiment
{
version
}
"
)
repository
.
git
.
push
(
'
--set-upstream
'
,
repository
.
remote
().
name
,
f
"
{
experimentName
}
Experiment
{
version
}
"
)
repository
.
git
.
checkout
(
experimentName
)
repository
.
git
.
checkout
(
experimentName
)
print
(
"
done
"
)
def
genChecksum
(
file
)
->
str
:
def
genChecksum
(
file
)
->
str
:
hash_md5
=
hashlib
.
md5
()
hash_md5
=
hashlib
.
md5
()
...
...
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