BlueBrain/eFEL

View on GitHub
examples/deap/GranuleCell1/GranuleCellDeap1-scoop.py

Summary

Maintainability
B
5 hrs
Test Coverage

Showing 3 of 3 total issues

Function compare_features has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
Open

def compare_features(orig_features, new_features):
obj_values = []
for step_number in orig_features:
for feature_name, feature_value in orig_features[step_number].items():
if feature_value is not None:
Severity: Minor
Found in examples/deap/GranuleCell1/GranuleCellDeap1-scoop.py - About 1 hr to fix

Function get_features has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

def get_features(conductances):
feature_values = collections.defaultdict(dict)
traces = []
times = []
voltages = []
Severity: Minor
Found in examples/deap/GranuleCell1/GranuleCellDeap1-scoop.py - About 45 mins to fix

Identical blocks of code found in 2 locations. Consider refactoring.
Open

def uniform(lower_list, upper_list, dimensions):
"""Fill array """
if hasattr(lower_list, '__iter__'):
return [random.uniform(lower, upper) for lower, upper in
zip(lower_list, upper_list)]
Severity: Major
Found in examples/deap/GranuleCell1/GranuleCellDeap1-scoop.py and 1 other location - About 3 hrs to fix
examples/deap/deap_efel.py on lines 62..70

There are no issues that match your filters.

Category
Status