Commit dd0d71a4 by Tobias Langer

Fixed utilization range argument.

parent 26cb37c5
...@@ -33,10 +33,11 @@ def main(): ...@@ -33,10 +33,11 @@ def main():
remain = args.experiments remain = args.experiments
while remain > 0: while remain > 0:
if args.utilization is not None: if args.utilization is not None:
subprocess.call(['./tasksetgen.py', '--microseconds', '--uniform', '5', utilization = '--utilization {} {}'.format(args.utilization - 0.25, args.utilization + 0.25)
'--utilization {}:{}'.format(args.utilization - 0.25, args.utilization + 0.25), subprocess.call(['./tasksetgen.py', '--microseconds', '--utilization', str(args.utilization - 0.25),
str(remain), 'experiments/ese2016_{}'.format(cnt), str(args.utilization + 0.25), '--uniform', '5',
'experiment_data']) str(remain), 'experiments/ese2016_{}'.format(cnt),
'experiment_data'])
else: else:
subprocess.call(['./tasksetgen.py', '--microseconds', '--uniform', '5', subprocess.call(['./tasksetgen.py', '--microseconds', '--uniform', '5',
str(remain), 'experiments/ese2016_{}'.format(cnt), str(remain), 'experiments/ese2016_{}'.format(cnt),
......
...@@ -129,7 +129,7 @@ def main(): ...@@ -129,7 +129,7 @@ def main():
parser.add_argument('experiment_target', type=str, help='Output directory for experiments.', nargs='?', parser.add_argument('experiment_target', type=str, help='Output directory for experiments.', nargs='?',
default='.') default='.')
parser.add_argument('--utility', type=str, help='The utility for which tasksets should be generated. Is a range such as 2.5:3.5', nargs=1) parser.add_argument('--utilization', type=float, help='The utility for which tasksets should be generated. Is a range such as 2.5 3.5', nargs=2)
parser.add_argument('--baseclock', type=str, default='system_clock', parser.add_argument('--baseclock', type=str, default='system_clock',
nargs='?', nargs='?',
...@@ -179,12 +179,7 @@ def main(): ...@@ -179,12 +179,7 @@ def main():
utility = None utility = None
try: try:
utility_val = args.utility.split(':') utility = args.utilization
if len(utility_val > 3):
print('Invalid utility specified.', file=sys.sterr)
sys.exit(1)
utility = [float(util) for util in utility_val]
except AttributeError: except AttributeError:
pass pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment