Showing 195 of 195 total issues
Function export_annotated_video
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def export_annotated_video(
coordinates: coordinates,
soft_counts: dict = None,
breaks: dict = None,
experiment_id: 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 merge
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def merge(self, *args, ignore_index=False):
"""Take a number of table_dict objects and merges them to the current one.
Returns a table_dict object of type 'merged'.
Only annotations of the first table_dict object are kept.
- 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 enrichment_across_conditions
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def enrichment_across_conditions(
embedding: table_dict = None,
soft_counts: table_dict = None,
breaks: table_dict = None,
supervised_annotations: 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 iterative_imputation
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def iterative_imputation(
project: project, tab_dict: dict, lik_dict: dict, full_imputation: bool = False
):
"""Perform iterative imputation on occluded body parts. Run per animal and experiment.
- 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 set_missing_animals
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def set_missing_animals(
coordinates: project, tab_dict: dict, lik_dict: dict, animal_ids: list = None
):
"""Set the coordinates of the missing animals to NaN.
- 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 load_segmentation_model
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def load_segmentation_model(path):
model_url = "https://datashare.mpcdf.mpg.de/s/GccLGXXZmw34f8o/download"
if path is None:
installation_path = os.path.dirname(os.path.abspath(__file__))
- 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 align_trajectories
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def align_trajectories(
data: np.array, mode: str = "all", run_numba: bool = False
) -> np.array: # pragma: no cover
"""Remove rotational variance on the trajectories.
- 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 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function full_outlier_mask
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def full_outlier_mask(
Function get_graph_dataset
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def get_graph_dataset(
Function plot_normative_log_likelihood
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def plot_normative_log_likelihood(
Function output_cluster_video
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def output_cluster_video(
Function rupture_per_experiment
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def rupture_per_experiment(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function rolling_speed
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def rolling_speed(
Function select_time_bin
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def select_time_bin(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function climb_wall
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def climb_wall(
Function tagged_video_output
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def tagged_video_output(
Function plot_shap_swarm_per_cluster
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def plot_shap_swarm_per_cluster(