diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-06-15 21:04:58 -0700 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-07-13 16:33:29 +0200 |
commit | 7b8b791cda58879025d655987bcd6ea6e797e0e9 (patch) | |
tree | 3321b0cc2c88b8ab7a53213127892616a6c8fc1f /grc/core/utils/complexity.py | |
parent | 03c3d3f030b9dc20a005a00668ca6aa69cb75de0 (diff) |
grc-refactor: Block: make more public attribs
Diffstat (limited to 'grc/core/utils/complexity.py')
-rw-r--r-- | grc/core/utils/complexity.py | 4 |
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) |