removed matplotlib import

removed plotting pit analysis
fixed warning supression for win exe
superscript v 0.8.6


Former-commit-id: 1b01ede161
This commit is contained in:
Arthur Lu 2021-04-12 15:13:54 -07:00
parent 2619f9a729
commit 651ae0c2db
4 changed files with 9 additions and 29 deletions

View File

@ -1 +1 @@
e3e745f422bf373316e2aa3f8e2d0722317a57bf
ab62effa6bb1776cc136a7c60afc666d75acefd5

View File

@ -12,7 +12,6 @@ numpy
scipy
scikit-learn
six
matplotlib
pyparsing
pandas

View File

@ -3,10 +3,12 @@
# Notes:
# setup:
__version__ = "0.8.5"
__version__ = "0.8.6"
# changelog should be viewed using print(analysis.__changelog__)
__changelog__ = """changelog:
0.8.6:
- added proper main function
0.8.5:
- added more gradeful KeyboardInterrupt exiting
- redirected stderr to errorlog.txt
@ -140,7 +142,6 @@ from os import system, name
from pathlib import Path
from multiprocessing import Pool
import platform
import matplotlib.pyplot as plt
import sys
from concurrent.futures import ThreadPoolExecutor
import time
@ -574,29 +575,6 @@ def get_team_metrics(apikey, tbakey, competition):
return {"elo-ranks": elo_ranked, "glicko2-ranks": gl2_ranked}
def graph_pit_histogram(apikey, competition, figsize=(80,15)):
pit = d.get_pit_variable_formatted(apikey, competition)
fig, ax = plt.subplots(1, len(pit), sharey=True, figsize=figsize)
i = 0
for variable in pit:
ax[i].hist(pit[variable])
ax[i].invert_xaxis()
ax[i].set_xlabel('')
ax[i].set_ylabel('Frequency')
ax[i].set_title(variable)
plt.yticks(np.arange(len(pit[variable])))
i+=1
plt.show()
sample_json = """{
"max-threads": 0.5,
"team": "",
@ -644,4 +622,7 @@ sample_json = """{
}
}"""
if __name__ == "__main__":
if sys.platform.startswith('win'):
multiprocessing.freeze_support()
main()

View File

@ -26,7 +26,7 @@ exe = EXE(pyz,
a.binaries,
a.zipfiles,
a.datas,
[],
[('W ignore', None, 'OPTION')],
name='superscript',
debug=False,
bootloader_ignore_signals=False,