Showing 195 of 195 total issues
Function recluster
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def recluster(
Function align_deepof_kinematics_with_unsupervised_labels
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def align_deepof_kinematics_with_unsupervised_labels(
Function export_annotated_video
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def export_annotated_video(
Function _filter_embeddings
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _filter_embeddings(
Function close_double_contact
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def close_double_contact(
Function automatically_recognize_arena
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def automatically_recognize_arena(
Function select_contrastive_loss
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def select_contrastive_loss(
Function extend
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
Open
def extend(
self,
project_to_extend: coordinates,
video_path: str = None,
table_path: str = None,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function call
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def call(self, inputs, training=False): # pragma: no cover
"""Compute the output of the layer."""
z_gauss_mean = self.z_gauss_mean(inputs)
z_gauss_var = self.z_gauss_var(inputs)
Function __init__
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(
self,
input_shape: tuple,
edge_feature_shape: tuple,
adjacency_matrix: np.ndarray = None,
Function plot_cluster_detection_performance
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def plot_cluster_detection_performance(
Function get_coords
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_coords(
Function output_unsupervised_annotated_video
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def output_unsupervised_annotated_video(
Function supervised_annotation
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def supervised_annotation(
Function remove_outliers
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def remove_outliers(
Function embedding_per_video
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def embedding_per_video(
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function get_callbacks
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_callbacks(
Function get_recurrent_encoder
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_recurrent_encoder(
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(