From 7b8b791cda58879025d655987bcd6ea6e797e0e9 Mon Sep 17 00:00:00 2001 From: Sebastian Koslowski <koslowski@kit.edu> Date: Wed, 15 Jun 2016 21:04:58 -0700 Subject: grc-refactor: Block: make more public attribs --- grc/core/utils/complexity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grc/core/utils/complexity.py') 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) -- cgit v1.2.3