Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Alnos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Michele Volpato
Alnos
Commits
f78216a7
Commit
f78216a7
authored
Aug 25, 2017
by
Michele Volpato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added check for row to be defined before promoting
parent
3b1555f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
learning/observationtable.py
learning/observationtable.py
+3
-0
No files found.
learning/observationtable.py
View file @
f78216a7
...
...
@@ -194,6 +194,8 @@ class Table:
for
row
in
rows
:
if
row
not
in
self
.
_entries
.
keys
():
self
.
_logger
.
warning
(
"Promoting rows: "
+
str
(
row
)
+
" is not in the table."
)
elif
not
self
.
isDefined
(
row
):
self
.
_logger
.
warning
(
"Promoting rows: "
+
str
(
row
)
+
" is not defined."
)
else
:
self
.
_rowsInS
.
add
(
th
.
flatten
(
row
,
self
.
_quiescence
))
...
...
@@ -689,6 +691,7 @@ class Table:
# Update an entry in the table. If it does not exist, create it
# observation is the answer of the observation oracle
# TODO: observation oracle? should be replaced with possible outputs?
def
updateEntry
(
self
,
trace
,
output
=
None
,
observation
=
None
):
trace
=
th
.
flatten
(
trace
,
self
.
_quiescence
)
if
trace
in
self
.
_entries
:
...
...
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