superscript v 0.8.5

Former-commit-id: 4de011ef45
This commit is contained in:
Arthur Lu 2021-04-10 06:08:18 +00:00
parent 7abfb2d90a
commit 014570930a
3 changed files with 72 additions and 53 deletions

2
.gitignore vendored
View File

@ -7,3 +7,5 @@
**/*.egg-info/
**/config.json
**/tra_analysis/
**/errorlog.txt

View File

@ -1 +1 @@
e5f402045a28f8602e17dbd7e4ca6641c33ccd65
d7d6e7a11e9acaf8966e4a25edcacad84793282e

View File

@ -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():