summaryrefslogtreecommitdiff
path: root/grc/core/generator/Generator.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-06-15 21:04:58 -0700
committerSebastian Koslowski <koslowski@kit.edu>2016-07-13 16:33:29 +0200
commit7b8b791cda58879025d655987bcd6ea6e797e0e9 (patch)
tree3321b0cc2c88b8ab7a53213127892616a6c8fc1f /grc/core/generator/Generator.py
parent03c3d3f030b9dc20a005a00668ca6aa69cb75de0 (diff)
grc-refactor: Block: make more public attribs
Diffstat (limited to 'grc/core/generator/Generator.py')
-rw-r--r--grc/core/generator/Generator.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/core/generator/Generator.py b/grc/core/generator/Generator.py
index 3664d083e9..2486d68ec0 100644
--- a/grc/core/generator/Generator.py
+++ b/grc/core/generator/Generator.py
@@ -91,7 +91,7 @@ class TopBlockGenerator(object):
"""generate output and write it to files"""
# Do throttle warning
throttling_blocks = [b for b in self._flow_graph.get_enabled_blocks()
- if b.throtteling()]
+ if b.is_throtteling]
if not throttling_blocks and not self._generate_options.startswith('hb'):
Messages.send_warning("This flow graph may not have flow control: "
"no audio or RF hardware blocks found. "
@@ -189,7 +189,7 @@ class TopBlockGenerator(object):
for block in bypassed_blocks:
# Get the upstream connection (off of the sink ports)
# Use *connections* not get_connections()
- source_connection = [c for c in connections if c.sink_port == block.get_sinks()[0]]
+ source_connection = [c for c in connections if c.sink_port == block.sinks[0]]
# The source connection should never have more than one element.
assert (len(source_connection) == 1)
@@ -197,7 +197,7 @@ class TopBlockGenerator(object):
source_port = source_connection[0].source_port
# Loop through all the downstream connections
- for sink in (c for c in connections if c.source_port == block.get_sources()[0]):
+ for sink in (c for c in connections if c.source_port == block.sources[0]):
if not sink.get_enabled():
# Ignore disabled connections
continue