consolidated dataset/data imports

Former-commit-id: 6364746d7a
This commit is contained in:
Arthur Lu 2021-08-12 21:58:41 +00:00
parent b3ab9156db
commit 6819aaf143
3 changed files with 5 additions and 9 deletions

View File

@ -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

View File

@ -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"

View File

@ -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()