Skip to content

Commit 2d7c27a

Browse files
committed
formatting
1 parent 06ac708 commit 2d7c27a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

scoring/run_workloads.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@
5050
False,
5151
'Whether or not to actually run the docker containers. '
5252
'If False, simply print the docker run commands. ')
53-
flags.DEFINE_enum('tuning_ruleset',
54-
'external',
55-
enum_values=['external', 'self'],
56-
help='Can be either external of self.')
53+
flags.DEFINE_enum(
54+
'tuning_ruleset',
55+
'external',
56+
enum_values=['external', 'self'],
57+
help='Can be either external of self.')
5758
flags.DEFINE_integer('num_studies', 5, 'Number of studies to run')
5859
flags.DEFINE_integer('study_start_index', None, 'Start index for studies.')
5960
flags.DEFINE_integer('study_end_index', None, 'End index for studies.')
@@ -71,7 +72,7 @@
7172
'Path to config containing held-out workloads')
7273
flags.DEFINE_string(
7374
'workload_metadata_path',
74-
None,
75+
None,
7576
'Path to config containing dataset and maximum number of steps per workload.'
7677
'The default values of these are set to the full budgets as determined '
7778
'via the target-setting procedure. '
@@ -84,6 +85,7 @@
8485

8586
FLAGS = flags.FLAGS
8687

88+
8789
def read_held_out_workloads(filename):
8890
with open(filename, "r") as f:
8991
held_out_workloads = json.load(f)
@@ -195,9 +197,6 @@ def main(_):
195197

196198
command += tuning_ruleset_flags
197199

198-
199-
200-
201200
if not FLAGS.dry_run:
202201
print('Running docker container command')
203202
print('Container ID: ')

0 commit comments

Comments
 (0)