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
8f63fd0f
Commit
8f63fd0f
authored
Dec 14, 2014
by
Maxime Perrotin
Browse files
Remove debug logging
parent
e70927b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
opengeode/Renderer.py
View file @
8f63fd0f
...
...
@@ -322,16 +322,13 @@ def _terminator(ast, scene, parent, states):
# pylint: disable=E1111
parent
=
render
(
ast
.
label
,
scene
=
scene
,
parent
=
parent
,
states
=
states
)
if
ast
.
kind
==
'next_state'
:
LOG
.
debug
(
'ADDING NEXT_STATE '
+
ast
.
inputString
)
# Create a new state symbol
symbol
=
sdlSymbols
.
State
(
parent
=
parent
,
ast
=
ast
)
# If the terminator is also a new state, render the inputs below
LOG
.
debug
(
'STATELIST:'
+
str
([
st
.
inputString
for
st
in
states
]))
for
state_ast
in
states
:
if
(
state_ast
.
inputString
==
ast
.
inputString
and
state_ast
.
pos_x
==
ast
.
pos_x
and
state_ast
.
pos_y
==
ast
.
pos_y
):
LOG
.
debug
(
'MERGING TERMINATOR "'
+
ast
.
inputString
+
'"'
)
symbol
.
nested_scene
=
state_ast
.
composite
or
\
ogAST
.
CompositeState
()
for
each
in
chain
(
state_ast
.
inputs
,
state_ast
.
connects
):
...
...
opengeode/sdlSymbols.py
View file @
8f63fd0f
...
...
@@ -353,7 +353,6 @@ class Decision(VerticalSymbol):
def
updateConnectionPointPosition
(
self
):
''' Compute the joining point of decision branches '''
LOG
.
debug
(
'UpdateConnectionPointPosition of {}'
.
format
(
unicode
(
self
)))
new_y
=
0
new_x
=
self
.
boundingRect
().
width
()
/
2.0
answers
=
False
...
...
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