Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schedgen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
veriT
schedgen
Commits
ffae04d7
Commit
ffae04d7
authored
3 years ago
by
Hans-Jörg
Browse files
Options
Downloads
Patches
Plain Diff
Fix handling of CSV input in optimize script.
I think this did not work before.
parent
35129c52
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
schedgen/schedgen-optimize.py
+11
-4
11 additions, 4 deletions
schedgen/schedgen-optimize.py
with
11 additions
and
4 deletions
schedgen/schedgen-optimize.py
+
11
−
4
View file @
ffae04d7
...
...
@@ -11,6 +11,7 @@ from schedgen.opt.schedule import (
from
schedgen.opt.order
import
OptimizeOrder
from
schedgen.opt.helper
import
message
,
file_or_dir_path
,
new_file_path
,
file_path
from
schedgen.parsers.gridtpt
import
GridTPT
from
schedgen.parsers.csvresult
import
CSVResult
args_parser
=
argparse
.
ArgumentParser
(
description
=
"
Find an optimal schedule from a set of bechmarks.
"
...
...
@@ -215,13 +216,19 @@ if __name__ == "__main__":
time_slices
=
args
.
slices
time_slices
.
sort
()
message
(
f
"
Time slices:
{
time_slices
}
"
,
logics
)
experiments
=
list
(
args
.
data
.
glob
(
"
**/*.txt
"
))
message
(
f
"
Found
{
len
(
experiments
)
}
.txt files.
"
,
logics
)
if
not
args
.
csv
:
experiments
=
list
(
args
.
data
.
glob
(
"
**/*.txt
"
))
message
(
f
"
Found
{
len
(
experiments
)
}
.txt files.
"
,
logics
)
if
"
all
"
in
logics
:
r
=
GridTPT
(
args
.
data
)
filter
=
None
else
:
r
=
GridTPT
(
args
.
data
,
logics
)
filter
=
logics
if
args
.
csv
:
r
=
CSVResult
(
args
.
data
,
filter
)
else
:
r
=
GridTPT
(
args
.
data
,
filter
)
exps
=
r
.
frame
.
copy
()
pre_schedule
=
None
...
...
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