added max-threads key in config

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2020-09-21 07:21:59 +00:00
parent e6049502e9
commit 71adc97277
2 changed files with 1 additions and 4 deletions

View File

@ -1,4 +1,5 @@
{ {
"max-threads": 8,
"team": "", "team": "",
"competition": "2020ilch", "competition": "2020ilch",
"key":{ "key":{

View File

@ -232,8 +232,6 @@ def load_match(apikey, competition):
def matchloop(apikey, competition, data, tests): # expects 3D array with [Team][Variable][Match] def matchloop(apikey, competition, data, tests): # expects 3D array with [Team][Variable][Match]
start = time.time()
global exec_threads global exec_threads
def simplestats(data_test): 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 return_vector[team_filtered[i]][variable_filtered[i]][test_filtered[i]] = result
i += 1 i += 1
print("metrics finished in " + str(time.time() - start))
push_match(apikey, competition, return_vector) push_match(apikey, competition, return_vector)
def load_metric(apikey, competition, match, group_name, metrics): def load_metric(apikey, competition, match, group_name, metrics):