Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
priyakasimbeg committed Jan 27, 2024
1 parent 84c87b9 commit d6e2a36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions scoring/performance_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,16 @@ def get_times_for_submission(submission,
if num_studies != NUM_STUDIES:
if strict:
raise ValueError(f'Expecting {NUM_STUDIES} trials for workload '
f'{workload} but found {num_studies} trials.')
f'{workload} but found {num_studies} trials.')
else:
logging.warning(f'Expecting {NUM_STUDIES} trials for workload '
f'{workload} but found {num_studies} trials.')
f'{workload} but found {num_studies} trials.')
for study, group in group.groupby('study'):
num_trials = len(group)
if num_trials != NUM_TRIALS and not self_tuning_ruleset:
if strict:
raise ValueError(f'Expecting {NUM_TRIALS} trials for workload '
f'{workload} but found {num_trials} trials.')
f'{workload} but found {num_trials} trials.')
else:
logging.warning(f'Expecting {NUM_TRIALS} trials for workload '
f'{workload} but found {num_trials} trials.')
Expand All @@ -211,7 +211,6 @@ def get_times_for_submission(submission,
else:
time_val = float('inf')
time_vals_per_study.append(time_val)


workloads.append({
'submission': submission_name,
Expand Down
3 changes: 2 additions & 1 deletion scoring/scoring_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def get_experiment_df(experiment_dir):
}
logging.info(os.path.join(experiment_dir, study_dir, workload))
trial_dirs = [
t for t in os.listdir(os.path.join(experiment_dir, study_dir, workload))
t for t in os.listdir(
os.path.join(experiment_dir, study_dir, workload))
if re.match(TRIAL_DIR_REGEX, t)
]
for trial in trial_dirs:
Expand Down

0 comments on commit d6e2a36

Please sign in to comment.