mirror of
https://github.com/Jaxan/satuio.git
synced 2025-04-27 06:37:45 +02:00
more handy output
This commit is contained in:
parent
8e5553e8b1
commit
98c32edff1
1 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,7 @@ from utils.utils import *
|
||||||
|
|
||||||
|
|
||||||
# We set up some things for nice output
|
# We set up some things for nice output
|
||||||
console = Console(highlight=False)
|
console = Console(highlight=False, stderr=True)
|
||||||
|
|
||||||
|
|
||||||
# *****************
|
# *****************
|
||||||
|
@ -398,6 +398,8 @@ console.print(now(), 'Done')
|
||||||
console.print(f'uios found: {100*len(uios)/len(states):.0f}%')
|
console.print(f'uios found: {100*len(uios)/len(states):.0f}%')
|
||||||
console.print(f'avg length: {sum([len(uio) for uio in uios.values()])/len(uios):.3}')
|
console.print(f'avg length: {sum([len(uio) for uio in uios.values()])/len(uios):.3}')
|
||||||
|
|
||||||
|
print(f'{args.filename},{len(states)},{len(uios)},{sum([len(uio) for uio in uios.values()])}')
|
||||||
|
|
||||||
if args.log:
|
if args.log:
|
||||||
with open('uio.log', 'a') as logfile:
|
with open('uio.log', 'a') as logfile:
|
||||||
logfile.write(f'{args.filename},{len(states)},{len(uios)},{sum([len(uio) for uio in uios.values()])}\n')
|
logfile.write(f'{args.filename},{len(states)},{len(uios)},{sum([len(uio) for uio in uios.values()])}\n')
|
||||||
|
|
Loading…
Add table
Reference in a new issue