Gröbner basis project
Codebase for research into Gröbner basis computation
Main Page
Related Pages
Modules
Classes
Files
Examples
File List
seek_error.py
1
def
search_for_missing():
2
L = list()
3
f = open(
"output.txt"
,
"r")
4
for
line
in
f:
5
s = line.split()
6
if
len(s) > 0:
7
if
s[0] ==
'deleting'
:
8
xa = s[1]
9
if
not
xa
in
L:
10
print
'error at'
, xa
11
return
12
L.remove(xa)
13
elif
s[0] ==
'Working'
:
14
xa = s[2]
15
if
not
xa
in
L:
16
L.append(xa)
17
elif
s[0] ==
'allocating'
:
18
xa = s[1]
19
if
len(L) > 12:
20
print
'error at'
, xa
21
print
L
22
return
23
L.append(xa)
24
print
L
25
f.close()
26
print
"finished without error"
27
28
search_for_missing()
seek_error.py
Generated by
1.8.11