consolidated dataset/data imports

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

View File

@ -1,8 +1,7 @@
import numpy as np import numpy as np
from tra_analysis import Analysis as an from tra_analysis import Analysis as an
from dataset import push_metric, load_metric from data import pull_new_tba_matches, push_metric, load_metric
from data import pull_new_tba_matches
import signal import signal

View File

@ -1,7 +1,6 @@
# testing purposes only, not to be used or run # testing purposes only, not to be used or run
import json import json
import multiprocessing
import os import os
import math import math
from multiprocessing import Pool from multiprocessing import Pool
@ -10,10 +9,9 @@ import warnings
import sys import sys
import asyncio import asyncio
import websockets import websockets
import lockfile
from interface import splash, log, ERR, INF, stdout, stderr 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 from processing import matchloop, metricloop, pitloop
config_path = "config.json" config_path = "config.json"

View File

@ -130,16 +130,15 @@ __all__ = [
# imports: # imports:
import json import json
import multiprocessing
import os import os
import math import math
from multiprocessing import Pool from multiprocessing import Pool, freeze_support
import time import time
import warnings import warnings
import sys import sys
from interface import splash, log, ERR, INF, stdout, stderr 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 from processing import matchloop, metricloop, pitloop
config_path = "config.json" config_path = "config.json"
@ -396,5 +395,5 @@ def save_config(path, config_vector):
if __name__ == "__main__": if __name__ == "__main__":
if sys.platform.startswith("win"): if sys.platform.startswith("win"):
multiprocessing.freeze_support() freeze_support()
main() main()