mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 05:35:28 -04:00
Exclude cases when the job logs don't have final energy
svn-origin-rev: 17867
This commit is contained in:
parent
c919410a42
commit
53c148e71b
1 changed files with 10 additions and 5 deletions
|
|
@ -221,10 +221,15 @@ def main():
|
|||
color='\033[0m'
|
||||
endc='\033[0m'
|
||||
for filename in args.file_lists:
|
||||
comp=(float(files[filename][1])-ref)/ref
|
||||
if abs(comp)>1e-14: color='\033[91m'
|
||||
else: color='\033[0m'
|
||||
print(('{0} ==> {1} : {2} : '+color+'{3}'+endc).format(files[filename][0],filename,files[filename][1],(float(files[filename][1])-ref)/ref))
|
||||
if len(files[filename][1])>0:
|
||||
comp=(float(files[filename][1])-ref)/ref
|
||||
if abs(comp)>1e-14: color='\033[91m'
|
||||
else: color='\033[0m'
|
||||
print(('{0} ==> {1} : {2} : '+color+'{3}'+endc).format(files[filename][0],filename,files[filename][1],(float(files[filename][1])-ref)/ref))
|
||||
else:
|
||||
print(('{0} ==> {1} : ').format(files[filename][0],filename)),
|
||||
sys.stdout.write(('-'*20).rjust(20))
|
||||
print("")
|
||||
|
||||
print("")
|
||||
|
||||
|
|
@ -254,7 +259,7 @@ def main():
|
|||
sys.stdout.write(index_key.ljust(35))
|
||||
for filename in args.file_lists:
|
||||
if index_key not in dict_stats[filename]:
|
||||
sys.stdout.write(('-'*20).rjust(20))
|
||||
sys.stdout.write(('-'*18).ljust(20))
|
||||
continue
|
||||
sys.stdout.write(dict_stats[filename][index_key].ljust(20))
|
||||
print("")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue