Fixed lint errors
This commit is contained in:
		
							parent
							
								
									78c2fa283a
								
							
						
					
					
						commit
						94dcc0530d
					
				| 
						 | 
					@ -1168,7 +1168,7 @@ def map_workload(map_workload_input):
 | 
				
			||||||
        target_data.update(mapped_workload=None, scores=None)
 | 
					        target_data.update(mapped_workload=None, scores=None)
 | 
				
			||||||
        LOG.debug('%s: Result = %s\n', task_name, _task_result_tostring(target_data))
 | 
					        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.',
 | 
					        LOG.info('%s: Skipping workload mapping because no workload data is available.',
 | 
				
			||||||
                  task_name)
 | 
					                 task_name)
 | 
				
			||||||
        return target_data, algorithm
 | 
					        return target_data, algorithm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Stack all X & y matrices for preprocessing
 | 
					    # Stack all X & y matrices for preprocessing
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -79,13 +79,12 @@ def run_background_tasks():
 | 
				
			||||||
            workload.delete()
 | 
					            workload.delete()
 | 
				
			||||||
            continue
 | 
					            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
 | 
					            # Check that there are enough results in the workload
 | 
				
			||||||
            LOG.info("Not enough results in workload %s (# results: %s, # required: %s).",
 | 
					            LOG.info("Not enough results in workload %s (# results: %s, # required: %s).",
 | 
				
			||||||
                     workload_name, num_wkld_results, MIN_WORKLOAD_RESULTS_COUNT)
 | 
					                     workload_name, num_wkld_results, MIN_WORKLOAD_RESULTS_COUNT)
 | 
				
			||||||
            continue
 | 
					            continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        LOG.info("Aggregating data for workload %s...", workload_name)
 | 
					        LOG.info("Aggregating data for workload %s...", workload_name)
 | 
				
			||||||
        # Aggregate the knob & metric data for this workload
 | 
					        # Aggregate the knob & metric data for this workload
 | 
				
			||||||
        knob_data, metric_data = aggregate_data(wkld_results)
 | 
					        knob_data, metric_data = aggregate_data(wkld_results)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue