Showing 195 of 195 total issues
Function plot_stationary_entropy
has 14 arguments (exceeds 4 allowed). Consider refactoring. Open
def plot_stationary_entropy(
Function embedding_per_video
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
def embedding_per_video(
coordinates: coordinates,
to_preprocess: table_dict,
model: tf.keras.models.Model,
scale: str = "standard",
- 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 annotate_time_chunks
has 14 arguments (exceeds 4 allowed). Consider refactoring. Open
def annotate_time_chunks(
Function get_vade
has 14 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_vade(
Function get_TCN_encoder
has 14 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_TCN_encoder(
Function _initialize_constraints
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
def _initialize_constraints(self, data):
"""
Initializes the body part constraints based on a sample of frames with complete mouse data
Args:
- 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 tune_search
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
def tune_search(
Function tag_annotated_frames
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
def tag_annotated_frames(
Function plot_gantt
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
def plot_gantt(
Function _check_enum_inputs
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
def _check_enum_inputs(
Function __init__
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function sniff_object
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
def sniff_object(
speed_dframe: pd.DataFrame,
arena_type: str,
arena: np.array,
pos_dict: pd.DataFrame,
- 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 edit_arenas
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
def edit_arenas(
self, videos: list = None, arena_type: str = None, verbose: bool = True
): # pragma: no cover
"""Tag the arena in the videos.
- 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 plot_stationary_entropy
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
def plot_stationary_entropy(
coordinates: coordinates,
embeddings: table_dict,
soft_counts: table_dict,
breaks: table_dict = 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 a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. 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)
- 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 __init__
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
def __init__(
self,
animal_ids: List = None,
arena: str = "polygonal-autodetect",
bodypart_graph: Union[str, dict] = "deepof_14",
Function sniff_object
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
def sniff_object(
Function preprocess
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
def preprocess(
Function condition_distance_binning
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
def condition_distance_binning(
Function __init__
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(