summaryrefslogtreecommitdiff
path: root/grc/core/utils/complexity.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/utils/complexity.py
parent03c3d3f030b9dc20a005a00668ca6aa69cb75de0 (diff)
grc-refactor: Block: make more public attribs
Diffstat (limited to 'grc/core/utils/complexity.py')
-rw-r--r--grc/core/utils/complexity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/core/utils/complexity.py b/grc/core/utils/complexity.py
index 6864603a0a..6da16eb28d 100644
--- a/grc/core/utils/complexity.py
+++ b/grc/core/utils/complexity.py
@@ -8,8 +8,8 @@ def calculate_flowgraph_complexity(flowgraph):
continue
# Don't worry about optional sinks?
- sink_list = [c for c in block.get_sinks() if not c.get_optional()]
- source_list = [c for c in block.get_sources() if not c.get_optional()]
+ sink_list = [c for c in block.sinks if not c.get_optional()]
+ source_list = [c for c in block.sources if not c.get_optional()]
sinks = float(len(sink_list))
sources = float(len(source_list))
base = max(min(sinks, sources), 1)