mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-11-10 06:54:45 +00:00
fixed .gitignore
added build-CLI script
fixed threading in superscript
Former-commit-id: 1fa36e8694
This commit is contained in:
parent
70afd23f2c
commit
e6e0351288
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,7 +4,5 @@
|
|||||||
**/.pytest_cache/
|
**/.pytest_cache/
|
||||||
**/*.pyc
|
**/*.pyc
|
||||||
|
|
||||||
**/build/
|
|
||||||
**/*.egg-info/
|
**/*.egg-info/
|
||||||
**/dist/
|
|
||||||
**/config.json
|
**/config.json
|
5
build/build-CLI.sh
Normal file
5
build/build-CLI.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
pathtospec="../src/superscript.spec"
|
||||||
|
pathtodist="../dist/"
|
||||||
|
pathtowork="/temp/"
|
||||||
|
|
||||||
|
pyinstaller --onefile --clean --distpath ${pathtodist} --workpath ${pathtowork} ${pathtospec}
|
1
dist/superscript.REMOVED.git-id
vendored
Normal file
1
dist/superscript.REMOVED.git-id
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
7fc1ccdee362692f0cfaf8a6ffe282ab8e47adca
|
@ -135,11 +135,11 @@ from concurrent.futures import ThreadPoolExecutor
|
|||||||
import time
|
import time
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
# global exec_threads
|
global exec_threads
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
# global exec_threads
|
global exec_threads
|
||||||
|
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
|
||||||
@ -203,7 +203,7 @@ def main():
|
|||||||
set_current_time(apikey, current_time)
|
set_current_time(apikey, current_time)
|
||||||
print("[OK] finished all tests, looping")
|
print("[OK] finished all tests, looping")
|
||||||
|
|
||||||
# clear()
|
#clear()
|
||||||
|
|
||||||
def clear():
|
def clear():
|
||||||
|
|
||||||
@ -314,7 +314,7 @@ def matchloop(apikey, competition, data, tests): # expects 3D array with [Team][
|
|||||||
variable_data.append((data[team][variable], test))
|
variable_data.append((data[team][variable], test))
|
||||||
test_filtered.append(test)
|
test_filtered.append(test)
|
||||||
|
|
||||||
result_filtered = map(simplestats, variable_data)
|
result_filtered = exec_threads.map(simplestats, variable_data)
|
||||||
i = 0
|
i = 0
|
||||||
|
|
||||||
result_filtered = list(result_filtered)
|
result_filtered = list(result_filtered)
|
||||||
|
Loading…
Reference in New Issue
Block a user