mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-11-10 06:54:45 +00:00
superscript v 0.8.3
This commit is contained in:
parent
d2f9c802b3
commit
69c707689b
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@
|
|||||||
|
|
||||||
**/*.egg-info/
|
**/*.egg-info/
|
||||||
**/config.json
|
**/config.json
|
||||||
|
**/tra_analysis/
|
@ -3,10 +3,12 @@
|
|||||||
# Notes:
|
# Notes:
|
||||||
# setup:
|
# setup:
|
||||||
|
|
||||||
__version__ = "0.8.2"
|
__version__ = "0.8.3"
|
||||||
|
|
||||||
# changelog should be viewed using print(analysis.__changelog__)
|
# changelog should be viewed using print(analysis.__changelog__)
|
||||||
__changelog__ = """changelog:
|
__changelog__ = """changelog:
|
||||||
|
0.8.3:
|
||||||
|
- updated matchloop with new regression format (requires tra_analysis 3.x)
|
||||||
0.8.2:
|
0.8.2:
|
||||||
- readded while true to main function
|
- readded while true to main function
|
||||||
- added more thread config options
|
- added more thread config options
|
||||||
@ -284,6 +286,8 @@ def matchloop(apikey, competition, data, tests): # expects 3D array with [Team][
|
|||||||
|
|
||||||
global exec_threads
|
global exec_threads
|
||||||
|
|
||||||
|
short_mapping = {"regression_linear": "lin", "regression_logarithmic": "log", "regression_exponential": "exp", "regression_polynomial": "ply", "regression_sigmoidal": "sig"}
|
||||||
|
|
||||||
class AutoVivification(dict):
|
class AutoVivification(dict):
|
||||||
def __getitem__(self, item):
|
def __getitem__(self, item):
|
||||||
try:
|
try:
|
||||||
@ -321,6 +325,12 @@ def matchloop(apikey, competition, data, tests): # expects 3D array with [Team][
|
|||||||
|
|
||||||
for result in result_filtered:
|
for result in result_filtered:
|
||||||
|
|
||||||
|
filtered = test_filtered[i]
|
||||||
|
|
||||||
|
try:
|
||||||
|
short = short_mapping[filtered]
|
||||||
|
return_vector[team_filtered[i]][variable_filtered[i]][test_filtered[i]] = result[short]
|
||||||
|
except KeyError: # not in mapping
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user