mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-12-29 02:59:08 +00:00
consolidated dataset/data imports
This commit is contained in:
parent
f74cfb3ae3
commit
6364746d7a
@ -1,8 +1,7 @@
|
||||
import numpy as np
|
||||
|
||||
from tra_analysis import Analysis as an
|
||||
from dataset import push_metric, load_metric
|
||||
from data import pull_new_tba_matches
|
||||
from data import pull_new_tba_matches, push_metric, load_metric
|
||||
|
||||
import signal
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
# testing purposes only, not to be used or run
|
||||
|
||||
import json
|
||||
import multiprocessing
|
||||
import os
|
||||
import math
|
||||
from multiprocessing import Pool
|
||||
@ -10,10 +9,9 @@ import warnings
|
||||
import sys
|
||||
import asyncio
|
||||
import websockets
|
||||
import lockfile
|
||||
|
||||
from interface import splash, log, ERR, INF, stdout, stderr
|
||||
from dataset import get_previous_time, set_current_time, load_match, push_match, load_metric, push_metric, load_pit, push_pit
|
||||
from data import get_previous_time, set_current_time, load_match, push_match, load_metric, push_metric, load_pit, push_pit
|
||||
from processing import matchloop, metricloop, pitloop
|
||||
|
||||
config_path = "config.json"
|
||||
|
@ -130,16 +130,15 @@ __all__ = [
|
||||
# imports:
|
||||
|
||||
import json
|
||||
import multiprocessing
|
||||
import os
|
||||
import math
|
||||
from multiprocessing import Pool
|
||||
from multiprocessing import Pool, freeze_support
|
||||
import time
|
||||
import warnings
|
||||
import sys
|
||||
|
||||
from interface import splash, log, ERR, INF, stdout, stderr
|
||||
from dataset import get_previous_time, set_current_time, load_match, push_match, load_metric, push_metric, load_pit, push_pit
|
||||
from data import get_previous_time, set_current_time, load_match, push_match, load_metric, push_metric, load_pit, push_pit
|
||||
from processing import matchloop, metricloop, pitloop
|
||||
|
||||
config_path = "config.json"
|
||||
@ -396,5 +395,5 @@ def save_config(path, config_vector):
|
||||
|
||||
if __name__ == "__main__":
|
||||
if sys.platform.startswith("win"):
|
||||
multiprocessing.freeze_support()
|
||||
freeze_support()
|
||||
main()
|
Loading…
Reference in New Issue
Block a user