mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
working
This commit is contained in:
parent
04141bbec8
commit
f7fd8ffcf9
Binary file not shown.
1
data analysis/config/competition.config
Normal file
1
data analysis/config/competition.config
Normal file
@ -0,0 +1 @@
|
|||||||
|
2020ilch
|
0
data analysis/config/database.config
Normal file
0
data analysis/config/database.config
Normal file
2
data analysis/config/keys.config
Normal file
2
data analysis/config/keys.config
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
mongodb+srv://api-user-new:titanscout2022@2022-scouting-4vfuu.mongodb.net/test?authSource=admin&replicaSet=2022-scouting-shard-0&readPreference=primary&appname=MongoDB%20Compass&ssl=true
|
||||||
|
UDvKmPjPRfwwUdDX1JxbmkyecYBJhCtXeyVk9vmO2i7K0Zn4wqQPMfzuEINXJ7e5
|
@ -1,4 +1,3 @@
|
|||||||
2020ilch
|
|
||||||
balls-blocked,basic_stats,historical_analysis,regression_linear,regression_logarithmic,regression_exponential,regression_polynomial,regression_sigmoidal
|
balls-blocked,basic_stats,historical_analysis,regression_linear,regression_logarithmic,regression_exponential,regression_polynomial,regression_sigmoidal
|
||||||
balls-collected,basic_stats,historical_analysis,regression_linear,regression_logarithmic,regression_exponential,regression_polynomial,regression_sigmoidal
|
balls-collected,basic_stats,historical_analysis,regression_linear,regression_logarithmic,regression_exponential,regression_polynomial,regression_sigmoidal
|
||||||
balls-lower-teleop,basic_stats,historical_analysis,regression_linear,regression_logarithmic,regression_exponential,regression_polynomial,regression_sigmoidal
|
balls-lower-teleop,basic_stats,historical_analysis,regression_linear,regression_logarithmic,regression_exponential,regression_polynomial,regression_sigmoidal
|
@ -81,6 +81,7 @@ __all__ = [
|
|||||||
|
|
||||||
from analysis import analysis as an
|
from analysis import analysis as an
|
||||||
import data as d
|
import data as d
|
||||||
|
from pathlib import Path
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import time
|
import time
|
||||||
@ -94,12 +95,13 @@ def main():
|
|||||||
print("time: " + str(current_time))
|
print("time: " + str(current_time))
|
||||||
|
|
||||||
print(" loading config")
|
print(" loading config")
|
||||||
competition, config = load_config("config.csv")
|
config = load_config(Path("config/stats.config"))
|
||||||
|
competition = an.load_csv(Path("config/competition.config"))[0][0]
|
||||||
print(" config loaded")
|
print(" config loaded")
|
||||||
|
|
||||||
print(" loading database keys")
|
print(" loading database keys")
|
||||||
apikey = an.load_csv("keys.txt")[0][0]
|
apikey = an.load_csv(Path("config/keys.config"))[0][0]
|
||||||
tbakey = an.load_csv("keys.txt")[1][0]
|
tbakey = an.load_csv(Path("config/keys.config"))[1][0]
|
||||||
print(" loaded keys")
|
print(" loaded keys")
|
||||||
|
|
||||||
previous_time = d.get_analysis_flags(apikey, "latest_update")
|
previous_time = d.get_analysis_flags(apikey, "latest_update")
|
||||||
@ -141,10 +143,10 @@ 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[1:]:
|
for line in file:
|
||||||
config_vector[line[0]] = line[1:]
|
config_vector[line[0]] = line[1:]
|
||||||
|
|
||||||
return (file[0][0], config_vector)
|
return config_vector
|
||||||
|
|
||||||
def simpleloop(data, tests): # expects 3D array with [Team][Variable][Match]
|
def simpleloop(data, tests): # expects 3D array with [Team][Variable][Match]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user