Style fixes

This commit is contained in:
arifiorino 2020-02-19 23:16:24 +00:00 committed by Dana Van Aken
parent 8f382e22e8
commit 70f2768797
2 changed files with 3 additions and 1 deletions

View File

@ -174,6 +174,7 @@ def clean_metric_data(metric_matrix, metric_labels, session):
del metric_labels[i] del metric_labels[i]
return matrix, metric_labels return matrix, metric_labels
def save_execution_time(start_ts, fn, result): def save_execution_time(start_ts, fn, result):
end_ts = time.time() end_ts = time.time()
exec_time = end_ts - start_ts exec_time = end_ts - start_ts

View File

@ -4,8 +4,8 @@
# Copyright (c) 2017-18, Carnegie Mellon University Database Group # Copyright (c) 2017-18, Carnegie Mellon University Database Group
# #
import copy import copy
import numpy as np
import time import time
import numpy as np
from pytz import timezone from pytz import timezone
from celery import shared_task from celery import shared_task
@ -30,6 +30,7 @@ LOG = get_task_logger(__name__)
# Only process workload containing this minimum amount of results # Only process workload containing this minimum amount of results
MIN_WORKLOAD_RESULTS_COUNT = 5 MIN_WORKLOAD_RESULTS_COUNT = 5
def save_execution_time(start_ts, fn): def save_execution_time(start_ts, fn):
end_ts = time.time() end_ts = time.time()
exec_time = end_ts - start_ts exec_time = end_ts - start_ts