fixed .gitignore

added build-CLI script
fixed threading in superscript
This commit is contained in:
Arthur Lu 2021-04-02 21:58:35 +00:00
parent 18dbc174bd
commit 99e28f5e83
3 changed files with 9 additions and 6 deletions

2
.gitignore vendored
View File

@ -4,7 +4,5 @@
**/.pytest_cache/
**/*.pyc
**/build/
**/*.egg-info/
**/dist/
**/config.json

5
build/build-CLI.sh Normal file
View File

@ -0,0 +1,5 @@
pathtospec="../src/superscript.spec"
pathtodist="../dist/"
pathtowork="/temp/"
pyinstaller --onefile --clean --distpath ${pathtodist} --workpath ${pathtowork} ${pathtospec}

View File

@ -135,11 +135,11 @@ from concurrent.futures import ThreadPoolExecutor
import time
import warnings
# global exec_threads
global exec_threads
def main():
# global exec_threads
global exec_threads
warnings.filterwarnings("ignore")
@ -314,7 +314,7 @@ def matchloop(apikey, competition, data, tests): # expects 3D array with [Team][
variable_data.append((data[team][variable], test))
test_filtered.append(test)
result_filtered = map(simplestats, variable_data)
result_filtered = exec_threads.map(simplestats, variable_data)
i = 0
result_filtered = list(result_filtered)