modified exit number extraction

This commit is contained in:
Claudio Zambaldi 2011-10-24 13:02:08 +00:00
parent 93b2160c2f
commit e7a60988a1
1 changed files with 4 additions and 2 deletions

View File

@ -5,8 +5,10 @@ class MSC_TOOLS():
for ln in fid_out:
if (string.find(ln,'tress iteration') is not -1):
print ln
fid_out.close()
elif (string.find(ln,'Exit number') is not -1):
substr=ln[string.find(ln,'Exit number'):len(ln)]
exitnumber=substr[12:16]
fid_out.close()
return exitnumber
return -1