Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Michele Volpato
Alnos
Commits
9cd3ac7c
Commit
9cd3ac7c
authored
Nov 04, 2015
by
Michele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed problem in quiescence reducibility check
parent
4901b578
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
learning/observationtable.py
learning/observationtable.py
+1
-10
No files found.
learning/observationtable.py
View file @
9cd3ac7c
...
...
@@ -252,9 +252,7 @@ class Table:
past
=
set
()
# filter rows
for
row1
in
filter
(
rowsWithQuiescence
,
self
.
_rowsInS
):
print
(
str
(
chaos
)
+
" Row1: "
+
str
(
row1
))
print
(
self
.
_entries
[
row1
])
row1Extended
=
row1
+
(
self
.
_quiescence
,)
row1Extended
=
th
.
flatten
(
row1
+
(
self
.
_quiescence
,),
self
.
_quiescence
)
# filter for rows in top part of the table that are
# moreSpecific than row1Extended,
moreSpecific
=
lambda
x
:
lambda
y
:
self
.
_moreSpecificRow
(
y
,
x
,
chaos
)
...
...
@@ -262,15 +260,9 @@ class Table:
# I want the most specific one
row2
=
listOfRows
.
pop
()
print
(
str
(
chaos
)
+
" Less specific: "
+
str
(
row1Extended
))
print
(
self
.
_entries
[
row1Extended
])
print
(
str
(
chaos
)
+
" Temporary more specific: "
+
str
(
row2
))
print
(
self
.
_entries
[
row2
])
for
row
in
listOfRows
:
if
self
.
_moreSpecificRow
(
row
,
row2
,
chaos
):
row2
=
row
print
(
str
(
chaos
)
+
" Most specific: "
+
str
(
row2
))
print
(
self
.
_entries
[
row2
])
if
row1
==
row2
:
# same row, simulation is trivial
continue
...
...
@@ -281,7 +273,6 @@ class Table:
wait
=
set
()
wait
.
add
((
row1
,
row2
,
()))
print
(
"Added: "
+
str
((
row1
,
row2
,
())))
while
wait
:
current
=
wait
.
pop
()
past
.
add
((
current
[
0
],
current
[
1
]))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment