mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-26 17:49:09 +00:00
changes, testing
This commit is contained in:
parent
09e6dc16f3
commit
c1d2fab930
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,3 +15,4 @@ data analysis/.ipynb_checkpoints/test-checkpoint.ipynb
|
|||||||
.vscode/settings.json
|
.vscode/settings.json
|
||||||
.vscode
|
.vscode
|
||||||
data analysis/arthur_pull.ipynb
|
data analysis/arthur_pull.ipynb
|
||||||
|
data analysis/keys.txt
|
||||||
|
Binary file not shown.
6
data analysis/config.csv
Normal file
6
data analysis/config.csv
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
2020ilch
|
||||||
|
balls-blocked, basic_stats
|
||||||
|
balls-collected, basic_stats
|
||||||
|
balls-lower, basic_stats
|
||||||
|
balls-started, basic_stats
|
||||||
|
balls-upper, basic_stats
|
|
@ -69,8 +69,8 @@ def main():
|
|||||||
def load_config(file):
|
def load_config(file):
|
||||||
config_vector = {}
|
config_vector = {}
|
||||||
file = an.load_csv(file)
|
file = an.load_csv(file)
|
||||||
for line in file[2:]:
|
for line in file[1:]:
|
||||||
config_vector[line[0]] = line[2:]
|
config_vector[line[0]] = line[1:]
|
||||||
|
|
||||||
return (file[0][0], config_vector)
|
return (file[0][0], config_vector)
|
||||||
|
|
||||||
@ -81,8 +81,11 @@ def simpleloop(data, tests): # expects 3D array with [Team][Variable][Match]
|
|||||||
for variable in data[team]:
|
for variable in data[team]:
|
||||||
test_vector = {}
|
test_vector = {}
|
||||||
variable_data = data[team][variable]
|
variable_data = data[team][variable]
|
||||||
|
if(variable in tests):
|
||||||
for test in tests[variable]:
|
for test in tests[variable]:
|
||||||
test_vector[test] = simplestats(variable_data, test)
|
test_vector[test] = simplestats(variable_data, test)
|
||||||
|
else:
|
||||||
|
pass
|
||||||
variable_vector[variable] = test_vector
|
variable_vector[variable] = test_vector
|
||||||
return_vector[team] = variable_vector
|
return_vector[team] = variable_vector
|
||||||
|
|
||||||
@ -90,7 +93,7 @@ def simpleloop(data, tests): # expects 3D array with [Team][Variable][Match]
|
|||||||
|
|
||||||
def simplestats(data, test):
|
def simplestats(data, test):
|
||||||
|
|
||||||
if(test == "simple_stats"):
|
if(test == "basic_stats"):
|
||||||
return an.basic_stats(data)
|
return an.basic_stats(data)
|
||||||
|
|
||||||
if(test == "historical_analysis"):
|
if(test == "historical_analysis"):
|
||||||
|
Loading…
Reference in New Issue
Block a user