Fixed lint errors

This commit is contained in:
dvanaken 2020-04-03 01:48:41 -04:00 committed by Dana Van Aken
parent 78c2fa283a
commit 94dcc0530d
2 changed files with 2 additions and 3 deletions

View File

@ -1168,7 +1168,7 @@ def map_workload(map_workload_input):
target_data.update(mapped_workload=None, scores=None)
LOG.debug('%s: Result = %s\n', task_name, _task_result_tostring(target_data))
LOG.info('%s: Skipping workload mapping because no workload data is available.',
task_name)
task_name)
return target_data, algorithm
# Stack all X & y matrices for preprocessing

View File

@ -79,13 +79,12 @@ def run_background_tasks():
workload.delete()
continue
elif num_wkld_results < MIN_WORKLOAD_RESULTS_COUNT:
if num_wkld_results < MIN_WORKLOAD_RESULTS_COUNT:
# Check that there are enough results in the workload
LOG.info("Not enough results in workload %s (# results: %s, # required: %s).",
workload_name, num_wkld_results, MIN_WORKLOAD_RESULTS_COUNT)
continue
LOG.info("Aggregating data for workload %s...", workload_name)
# Aggregate the knob & metric data for this workload
knob_data, metric_data = aggregate_data(wkld_results)