File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
dynamic_stack_decider_visualization/dynamic_stack_decider_visualization Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -216,9 +216,9 @@ def _stack_to_dotgraph(
216
216
"""
217
217
# Sanity check
218
218
if stack_root is not None :
219
- assert stack_root ["type" ] == subtree_root ["type" ], "The stack and the tree do not match"
219
+ assert stack_root ["type" ] == subtree_root ["type" ], "The stack root type and the tree root type do not match"
220
220
if stack_root ["type" ] != "sequence" :
221
- assert stack_root ["name" ] == subtree_root ["name" ], "The stack and the tree do not match"
221
+ assert stack_root ["name" ] == subtree_root ["name" ], "The stack root name and the tree root name do not match"
222
222
223
223
# Generate dot node for the root and mark it as active if it is on the stack
224
224
dot_node = DsdFollower ._dot_node_from_tree_element (subtree_root , stack_root )
@@ -355,8 +355,9 @@ def to_q_item_model(self):
355
355
356
356
def destroy (self ):
357
357
"""
358
- Cleanup the subscriptions, to we don't receive any more data that we don't need (performance)
359
- Also this allows the garbage collector to delete this object and prevent memory leaks
358
+ Cleanup the subscriptions, so we don't receive any more data that we don't need.
359
+ This improves the performance.
360
+ Also this allows the garbage collector to delete this object and prevent memory leaks.
360
361
"""
361
362
self ._node .destroy_subscription (self .tree_sub )
362
363
self ._node .destroy_subscription (self .stack_sub )
Original file line number Diff line number Diff line change @@ -127,11 +127,10 @@ def wheel_event(event):
127
127
self ._widget .auto_fit_graph_check_box .setChecked (False )
128
128
self ._widget .graphics_view .__class__ .wheelEvent (self ._widget .graphics_view , event )
129
129
130
- # Call it as well as the original wheelEvent
130
+ # Overwrite the original wheelEvent handler
131
131
self ._widget .graphics_view .wheelEvent = wheel_event
132
132
133
133
# Add widget to the user interface
134
-
135
134
context .add_widget (self ._widget )
136
135
137
136
# Start a timer that calls back every 100 ms
You can’t perform that action at this time.
0 commit comments