mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-12-30 19:39:09 +00:00
superscript v 0.8.5
This commit is contained in:
parent
5ea2297017
commit
4de011ef45
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@
|
||||
**/*.egg-info/
|
||||
**/config.json
|
||||
**/tra_analysis/
|
||||
|
||||
**/errorlog.txt
|
BIN
dist/superscript
vendored
BIN
dist/superscript
vendored
Binary file not shown.
@ -3,11 +3,14 @@
|
||||
# Notes:
|
||||
# setup:
|
||||
|
||||
__version__ = "0.8.4"
|
||||
__version__ = "0.8.5"
|
||||
|
||||
# changelog should be viewed using print(analysis.__changelog__)
|
||||
__changelog__ = """changelog:
|
||||
0.84:
|
||||
0.8.5:
|
||||
- added more gradeful KeyboardInterrupt exiting
|
||||
- redirected stderr to errorlog.txt
|
||||
0.8.4:
|
||||
- added better error message for missing config.json
|
||||
- added automatic config.json creation
|
||||
- added splash text with version and system info
|
||||
@ -138,6 +141,7 @@ from pathlib import Path
|
||||
from multiprocessing import Pool
|
||||
import platform
|
||||
import matplotlib.pyplot as plt
|
||||
import sys
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
import time
|
||||
import warnings
|
||||
@ -148,12 +152,16 @@ def main():
|
||||
|
||||
global exec_threads
|
||||
|
||||
sys.stderr = open("errorlog.txt", "w")
|
||||
|
||||
warnings.filterwarnings("ignore")
|
||||
|
||||
splash()
|
||||
|
||||
while (True):
|
||||
|
||||
try:
|
||||
|
||||
current_time = time.time()
|
||||
print("[OK] time: " + str(current_time))
|
||||
|
||||
@ -214,6 +222,15 @@ def main():
|
||||
|
||||
print_hrule()
|
||||
|
||||
except KeyboardInterrupt:
|
||||
print("\n[OK] caught KeyboardInterrupt, killing processes")
|
||||
exec_threads.terminate()
|
||||
print("[OK] processes killed, exiting")
|
||||
exit()
|
||||
|
||||
else:
|
||||
pass
|
||||
|
||||
#clear()
|
||||
|
||||
def clear():
|
||||
|
Loading…
Reference in New Issue
Block a user