efel/pyfeatures/isi.py
Showing 7 of 7 total issues
File isi.py
has 299 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
"""Features that are depending on the inter-spike intervals."""from __future__ import annotationsimport loggingfrom typing_extensions import deprecatedimport warnings
Function initburst_sahp
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
Open
def initburst_sahp() -> np.ndarray | None: """SlowAHP voltage after initial burst.""" # Required cpp features voltage = get_cpp_feature("voltage") time = get_cpp_feature("time")
- Read upRead up
Function burst_ISI_indices
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
def burst_ISI_indices() -> np.ndarray | None: """Calculate burst ISI indices based on burst factor and ISI values.""" # Fetching necessary data isi_values = ISI_values() if isi_values is None:
- Read upRead up
Function _isi_log_slope_core
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _isi_log_slope_core(
Avoid too many return
statements within this function. Open
Open
return None
Avoid too many return
statements within this function. Open
Open
return None
Avoid too many return
statements within this function. Open
Open
return np.array([slow_ahp])