mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-11-10 06:54:45 +00:00
parent
7abfb2d90a
commit
014570930a
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@
|
||||
**/*.egg-info/
|
||||
**/config.json
|
||||
**/tra_analysis/
|
||||
|
||||
**/errorlog.txt
|
2
dist/superscript.REMOVED.git-id
vendored
2
dist/superscript.REMOVED.git-id
vendored
@ -1 +1 @@
|
||||
e5f402045a28f8602e17dbd7e4ca6641c33ccd65
|
||||
d7d6e7a11e9acaf8966e4a25edcacad84793282e
|
@ -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