BlueBrain/eFEL

View on GitHub
efel/pyfeatures/extrafeats.py

Summary

Maintainability
C
1 day
Test Coverage

Showing 5 of 5 total issues

File extrafeats.py has 385 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"""Extracellular features functions"""
 
"""
Copyright (c) 2024, EPFL/Blue Brain Project
 
 
Severity: Minor
Found in efel/pyfeatures/extrafeats.py - About 5 hrs to fix

    Function calculate_features has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
    Open

    def calculate_features(
    waveforms,
    sampling_frequency,
    upsample=None,
    feature_names=None,
    Severity: Minor
    Found in efel/pyfeatures/extrafeats.py - About 2 hrs to fix

    Function halfwidth has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
    Open

    def halfwidth(
    waveforms,
    sampling_frequency,
    return_idx=False
    ):
    Severity: Minor
    Found in efel/pyfeatures/extrafeats.py - About 1 hr to fix

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

    def repolarization_slope(waveforms,
    sampling_frequency,
    return_idx=False
    ):
    """
    Severity: Minor
    Found in efel/pyfeatures/extrafeats.py - About 45 mins to fix

    Function calculate_features has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def calculate_features(
    Severity: Minor
    Found in efel/pyfeatures/extrafeats.py - About 35 mins to fix
      Category
      Status