Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
1333fdcb
Commit
1333fdcb
authored
Feb 20, 2017
by
Maxime Perrotin
Browse files
Fix minor issues with statechart configuration
parent
f553b25b
Changes
2
Hide whitespace changes
Inline
Side-by-side
opengeode/Statechart.py
View file @
1333fdcb
...
...
@@ -612,7 +612,7 @@ def create_dot_graph(root_ast, basic=False, scene=None):
else
:
LOG
.
info
(
"Statechart settings read from configuration file"
)
if
scene
:
if
scene
and
scene
.
views
()
:
# Load and display a table for the user to filter out messages that
# are not relevant to display on the statechart - and make it lighter
# Repeat for substates, too.
...
...
opengeode/opengeode.py
View file @
1333fdcb
...
...
@@ -1027,11 +1027,15 @@ class SDL_Scene(QtGui.QGraphicsScene, object):
ast
,
_
,
_
=
ogParser
.
parse_pr
(
string
=
pr_data
)
try
:
process_ast
,
=
ast
.
processes
process_ast
.
input_signals
=
\
sdlSymbols
.
CONTEXT
.
processes
[
0
].
input_signals
except
ValueError
:
LOG
.
debug
(
'No statechart to render'
)
return
None
try
:
process_ast
.
input_signals
=
\
sdlSymbols
.
CONTEXT
.
processes
[
0
].
input_signals
except
IndexError
:
# No process context, eg. when called from cmd line
LOG
.
debug
(
"Statechart rendering: no CONTEXT.processes[0]"
)
# Flatten nested states (no, because neato does not support it,
# dot supports only vertically-aligned states, and fdp does not
# support curved edges and is buggy with pygraphviz anyway)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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