From 71adc9727752572350a7cde42c3f8fe7c7229790 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 21 Sep 2020 07:21:59 +0000 Subject: [PATCH] added max-threads key in config Signed-off-by: Arthur Lu --- config.json | 1 + superscript.py | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/config.json b/config.json index eca2d09..a1715a9 100644 --- a/config.json +++ b/config.json @@ -1,4 +1,5 @@ { + "max-threads": 8, "team": "", "competition": "2020ilch", "key":{ diff --git a/superscript.py b/superscript.py index cb91adb..ab7eec7 100644 --- a/superscript.py +++ b/superscript.py @@ -232,8 +232,6 @@ def load_match(apikey, competition): def matchloop(apikey, competition, data, tests): # expects 3D array with [Team][Variable][Match] - start = time.time() - global exec_threads def simplestats(data_test): @@ -305,8 +303,6 @@ def matchloop(apikey, competition, data, tests): # expects 3D array with [Team][ return_vector[team_filtered[i]][variable_filtered[i]][test_filtered[i]] = result i += 1 - print("metrics finished in " + str(time.time() - start)) - push_match(apikey, competition, return_vector) def load_metric(apikey, competition, match, group_name, metrics):