Showing 53 of 182 total issues
Function on_mouse_click
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def on_mouse_click(self, event):
toolbar = plt.get_current_fig_manager().toolbar
if toolbar.mode == '' and (event.xdata is not None and event.ydata is not 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 run_template_search
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def run_template_search(self, patch_height, match_method, use_scaling=False, scale_centre=False, exhaustive_search=False, plot_results=False):
Function on_mouse_click
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def on_mouse_click(self, event):
toolbar = plt.get_current_fig_manager().toolbar
if toolbar.mode == '' and (event.xdata is not None and event.ydata is not 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 calc_lk_tracking_flow
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def calc_lk_tracking_flow(image1, image2, feature_params, lk_params, use_subpix=False):
Function run_sim
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def run_sim(folder_path, images, feature_params, lk_params, subpix_params):
Function run_sim
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def run_sim(folder_path, images, patch_height, patch_width, start_y):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, match_name, match_type, match_id, format_string, reverse_score=False):
Function calc_lk_tracking_flow
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def calc_lk_tracking_flow(image1, image2, feature_params, lk_params, use_subpix=False):
Function plot
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def plot(self, data_x, data_y, plot_format, plot_name, max_boundary_offset=0):
Function plot
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def plot(self, data_x, data_y, plot_format, plot_name, max_boundary_offset=0):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, match_name, match_type, match_id, format_string, reverse_score=False):
Function calc_line_points
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def calc_line_points(start_point, end_point, start_point2, end_point2, max_y):
"""
Calculates the straight-line coordinates between two pairs of corresponding points.
:param start_point: The first start point.
- 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 calc_line_points
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def calc_line_points(start_point, end_point, start_point2, end_point2, max_y):
"""
Calculates the straight-line coordinates between two pairs of corresponding points.
:param start_point: The first start point.
- 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"