alchemyst/Skogestad-Python

View on GitHub
robustcontrol/utilsplot.py

Summary

Maintainability
F
1 wk
Test Coverage

File utilsplot.py has 1107 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# -*- coding: utf-8 -*-
"""
Common features to plotting functions in this script

Default parameters
Severity: Major
Found in robustcontrol/utilsplot.py - About 2 days to fix

    Function rga_plot has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
    Open

    def rga_plot(G, w_start=-2, w_end=2, axlim=None, points=1000, fig=0,
                 plot_type='elements', input_label=None, output_label=None):
        """
        Plots the relative gain interaction between each output and input pairing
    
    
    Severity: Minor
    Found in robustcontrol/utilsplot.py - About 5 hrs to fix

    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

    Cyclomatic complexity is too high in function rga_plot. (20)
    Open

    def rga_plot(G, w_start=-2, w_end=2, axlim=None, points=1000, fig=0,
                 plot_type='elements', input_label=None, output_label=None):
        """
        Plots the relative gain interaction between each output and input pairing
    
    
    Severity: Minor
    Found in robustcontrol/utilsplot.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Function mimo_bode has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
    Open

    def mimo_bode(G, w_start=-2, w_end=2,
                  axlim=None, points=1000,
                  Kin=None, text=False, sv_all=False, legend_loc='best'):
        """
        Plots the max and min singular values of G and computes the crossover
    Severity: Minor
    Found in robustcontrol/utilsplot.py - About 3 hrs to fix

    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 step has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
    Open

    def step(G, t_end=100, initial_val=0, input_label=None,
             output_label=None, points=1000):
        """
        This function is similar to the MatLab step function.
    
    
    Severity: Minor
    Found in robustcontrol/utilsplot.py - About 3 hrs to fix

    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

    Cyclomatic complexity is too high in function dis_rejctn_plot. (12)
    Open

    def dis_rejctn_plot(G, Gd, S=None, w_start=-2,
                        w_end=2, axlim=None, points=1000):
        """
        A subplot of disturbance condition number to check for input saturation
        (equation 6.43, p238). Two more subplots indicate if the disturbances fall
    Severity: Minor
    Found in robustcontrol/utilsplot.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in function rga_nm_plot. (12)
    Open

    def rga_nm_plot(G, pairing_list=None, pairing_names=None, w_start=-2,
                    w_end=2, axlim=None, points=1000, plot_type='all'):
        """
        Plots the RGA number for a specified pairing
    
    
    Severity: Minor
    Found in robustcontrol/utilsplot.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in function step. (11)
    Open

    def step(G, t_end=100, initial_val=0, input_label=None,
             output_label=None, points=1000):
        """
        This function is similar to the MatLab step function.
    
    
    Severity: Minor
    Found in robustcontrol/utilsplot.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in function freq_step_response_plot. (10)
    Open

    def freq_step_response_plot(G, K, Kc, t_end=50, freqtype='S', w_start=-2,
                                w_end=2, axlim=None, points=1000):
        """
        A subplot function for both the frequency response and step response for a
        controlled plant
    Severity: Minor
    Found in robustcontrol/utilsplot.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Function rga_nm_plot has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
    Open

    def rga_nm_plot(G, pairing_list=None, pairing_names=None, w_start=-2,
                    w_end=2, axlim=None, points=1000, plot_type='all'):
        """
        Plots the RGA number for a specified pairing
    
    
    Severity: Minor
    Found in robustcontrol/utilsplot.py - About 2 hrs to fix

    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

    Cyclomatic complexity is too high in function input_acceptable_const_plot. (7)
    Open

    def input_acceptable_const_plot(G, Gd, w_start=-2, w_end=2, axlim=None,
                                    points=1000, modified=False):
        """
        Subplots for input constraints for acceptable control. Applies equation
        6.55 (p241).
    Severity: Minor
    Found in robustcontrol/utilsplot.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in function sv_dir_plot. (7)
    Open

    def sv_dir_plot(G, plot_type, w_start=-2, w_end=2, axlim=None, points=1000):
        """
        Plot the input and output singular vectors associated with the minimum and
        maximum singular values.
    
    
    Severity: Minor
    Found in robustcontrol/utilsplot.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in function ref_perfect_const_plot. (6)
    Open

    def ref_perfect_const_plot(G, R, wr, w_start=-2, w_end=2, axlim=None,
                               points=1000, plot_type='all'):
        """
        Use these plots to determine the constraints for perfect control in terms
        of combined reference changes. Equation 6.52 (p241) calculates the
    Severity: Minor
    Found in robustcontrol/utilsplot.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Function dis_rejctn_plot has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
    Open

    def dis_rejctn_plot(G, Gd, S=None, w_start=-2,
                        w_end=2, axlim=None, points=1000):
        """
        A subplot of disturbance condition number to check for input saturation
        (equation 6.43, p238). Two more subplots indicate if the disturbances fall
    Severity: Minor
    Found in robustcontrol/utilsplot.py - About 1 hr to fix

    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 perf_Wp_plot has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def perf_Wp_plot(S, wB_req, maxSSerror, w_start, w_end,
                     axlim=None, points=1000):
        """
        MIMO sensitivity S and performance weight Wp plotting function.
    
    
    Severity: Minor
    Found in robustcontrol/utilsplot.py - About 1 hr to fix

      Function mimo_bode has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def mimo_bode(G, w_start=-2, w_end=2,
      Severity: Major
      Found in robustcontrol/utilsplot.py - About 1 hr to fix

        Function freq_step_response_plot has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def freq_step_response_plot(G, K, Kc, t_end=50, freqtype='S', w_start=-2,
        Severity: Major
        Found in robustcontrol/utilsplot.py - About 1 hr to fix

          Function rga_plot has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def rga_plot(G, w_start=-2, w_end=2, axlim=None, points=1000, fig=0,
          Severity: Major
          Found in robustcontrol/utilsplot.py - About 1 hr to fix

            Function step_response_plot has 9 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            def step_response_plot(Y, U, t_end=50, initial_val=0, timedim='sec',
            Severity: Major
            Found in robustcontrol/utilsplot.py - About 1 hr to fix

              Function input_acceptable_const_plot has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
              Open

              def input_acceptable_const_plot(G, Gd, w_start=-2, w_end=2, axlim=None,
                                              points=1000, modified=False):
                  """
                  Subplots for input constraints for acceptable control. Applies equation
                  6.55 (p241).
              Severity: Minor
              Found in robustcontrol/utilsplot.py - About 1 hr to fix

              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 rga_nm_plot has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              def rga_nm_plot(G, pairing_list=None, pairing_names=None, w_start=-2,
              Severity: Major
              Found in robustcontrol/utilsplot.py - About 1 hr to fix

                Function ref_perfect_const_plot has 8 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def ref_perfect_const_plot(G, R, wr, w_start=-2, w_end=2, axlim=None,
                Severity: Major
                Found in robustcontrol/utilsplot.py - About 1 hr to fix

                  Function perf_Wp_plot has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def perf_Wp_plot(S, wB_req, maxSSerror, w_start, w_end,
                  Severity: Major
                  Found in robustcontrol/utilsplot.py - About 50 mins to fix

                    Function input_acceptable_const_plot has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def input_acceptable_const_plot(G, Gd, w_start=-2, w_end=2, axlim=None,
                    Severity: Major
                    Found in robustcontrol/utilsplot.py - About 50 mins to fix

                      Function dis_rejctn_plot has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def dis_rejctn_plot(G, Gd, S=None, w_start=-2,
                      Severity: Major
                      Found in robustcontrol/utilsplot.py - About 50 mins to fix

                        Function input_perfect_const_plot has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def input_perfect_const_plot(G, Gd, w_start=-2, w_end=2, axlim=None,
                        Severity: Major
                        Found in robustcontrol/utilsplot.py - About 50 mins to fix

                          Function bodeclosedloop has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          def bodeclosedloop(G, K, w_start=-2, w_end=2,
                          Severity: Major
                          Found in robustcontrol/utilsplot.py - About 50 mins to fix

                            Function bode has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            def bode(G, w_start=-2, w_end=2, axlim=None, points=1000, margin=False):
                            Severity: Minor
                            Found in robustcontrol/utilsplot.py - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  if axlim is not None:
                                                      ax.axis(axlim)
                                                  else:
                                                      ax.axis([None, None, None, max(rgamax)])
                              
                              
                              Severity: Major
                              Found in robustcontrol/utilsplot.py - About 45 mins to fix

                                Function step has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                def step(G, t_end=100, initial_val=0, input_label=None,
                                Severity: Minor
                                Found in robustcontrol/utilsplot.py - About 45 mins to fix

                                  Function sv_dir_plot has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def sv_dir_plot(G, plot_type, w_start=-2, w_end=2, axlim=None, points=1000):
                                  Severity: Minor
                                  Found in robustcontrol/utilsplot.py - About 45 mins to fix

                                    Function adjust_spine has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    def adjust_spine(xlabel, ylabel, x0=0, y0=0, width=1, height=1):
                                    Severity: Minor
                                    Found in robustcontrol/utilsplot.py - About 45 mins to fix

                                      Function plot_freq_subplot has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      def plot_freq_subplot(plt, w, direction, name, color, figure_num):
                                      Severity: Minor
                                      Found in robustcontrol/utilsplot.py - About 45 mins to fix

                                        Function subbode has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            def subbode(A, text, crossover, labB, labP):
                                        Severity: Minor
                                        Found in robustcontrol/utilsplot.py - About 35 mins to fix

                                          Function plot_zeros_poles has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                          def plot_zeros_poles(z, labels=None, markers='*', markersize=30, markercolor='blue'):
                                          Severity: Minor
                                          Found in robustcontrol/utilsplot.py - About 35 mins to fix

                                            Function condtn_nm_plot has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                            Open

                                            def condtn_nm_plot(G, w_start=-2, w_end=2, axlim=None, points=1000):
                                            Severity: Minor
                                            Found in robustcontrol/utilsplot.py - About 35 mins to fix

                                              Function mimo_nyquist_plot has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                              Open

                                              def mimo_nyquist_plot(L, w_start=-2, w_end=2, axlim=None, points=1000):
                                              Severity: Minor
                                              Found in robustcontrol/utilsplot.py - About 35 mins to fix

                                                TODO found
                                                Open

                                                    # TODO: The previous example returned (at some point) the following: (0.55557762223988783, 1.3650078065460138)
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by fixme

                                                TODO found
                                                Open

                                                    # TODO test S condition
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by fixme

                                                TODO found
                                                Open

                                                            # TODO induced max-norm
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by fixme

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                            if labels:
                                                                ax.set_title('Output ({}) vs. Input ({})'.format(
                                                                    output_label[i], input_label[j]))
                                                            else:
                                                                ax.set_title('Output {} vs. Input {}'.format(i + 1, j + 1))
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 2 hrs to fix
                                                robustcontrol/utilsplot.py on lines 654..662

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 61.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                                if labels:
                                                                    ax.set_title(
                                                                        'Output {0} vs. Input {1}'.format(
                                                                            output_label[i], input_label[j]
                                                                        )
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 2 hrs to fix
                                                robustcontrol/utilsplot.py on lines 1132..1136

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 61.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                    if margin:
                                                        plt.axvline(w_180, color='black')
                                                        plt.text(w_180,
                                                                 numpy.average([numpy.max(gains), numpy.min(gains)]),
                                                                 r'$\angle$G(jw) = -180$\degree$')
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 202..206

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 49.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                    if margin:
                                                        plt.axvline(wc, color='black')
                                                        plt.text(wc,
                                                                 numpy.average([numpy.max(phaseangle), numpy.min(phaseangle)]),
                                                                 '|G(jw)| = 1')
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 188..192

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 49.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                    axes.set_ylim(Yaxes[0]-0.1*rangeY, Yaxes[1]+0.1*rangeY)
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 146..146

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 46.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                    axes.set_xlim(Xaxes[0]-0.1*rangeX, Xaxes[1]+0.1*rangeX)
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 147..147

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 46.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                        plt.semilogx(w, utils.phase(vec[:, i, 0], deg=True), label='$%s_{max}$' % d, lw=2)
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 524..524

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 45.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                        plt.semilogx(w, utils.phase(vec[:, i, -1], deg=True), label='$%s_{min}$' % d, lw=2)
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 523..523

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 45.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                            s_min = numpy.array(
                                                                [utils.sigmas(S(s[p]), 'min') for p in range(points)])
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 894..895

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 40.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                                mag = numpy.array(
                                                                          numpy.abs(
                                                                              ([utils.RGA(Gfr)[i, j] for Gfr in freqresp])
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 696..697

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 40.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                                rgas = numpy.array(
                                                                    numpy.abs(([utils.RGA(Gfr)[i, j] for Gfr in freqresp]))
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 665..667

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 40.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                            s_max = numpy.array(
                                                                [utils.sigmas(S(s[p]), 'max') for p in range(points)])
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 892..893

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 40.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                        plt.semilogx(w, abs(vec[:, i, -1]), label='$%s_{min}$' % d, lw=2)
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 517..517

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 39.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                        plt.semilogx(w, abs(vec[:, i, 0]), label='$%s_{max}$' % d, lw=2)
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 1 hr to fix
                                                robustcontrol/utilsplot.py on lines 518..518

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 39.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                    elif plot_type == 'output':
                                                        vec = numpy.array([U for U, _, _ in map(utils.SVD, freqresp)])
                                                        d = 'u'
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 50 mins to fix
                                                robustcontrol/utilsplot.py on lines 505..507

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 36.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 2 locations. Consider refactoring.
                                                Open

                                                    if plot_type == 'input':
                                                        vec = numpy.array([V for _, _, V in map(utils.SVD, freqresp)])
                                                        d = 'v'
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py and 1 other location - About 50 mins to fix
                                                robustcontrol/utilsplot.py on lines 508..510

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 36.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 4 locations. Consider refactoring.
                                                Open

                                                            plt.loglog(w, inv_norm_gd[i], label=('$1/||g_{d%s}||_2$' % (i+1)))
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 3 other locations - About 30 mins to fix
                                                robustcontrol/utilsplot.py on lines 866..867
                                                robustcontrol/utilsplot.py on lines 878..878
                                                robustcontrol/utilsplot.py on lines 939..939

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 32.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 4 locations. Consider refactoring.
                                                Open

                                                    for i in range(dim):
                                                        plt.loglog(w, condtn_nm_gd[i], label=('$\gamma_{d%s} (G)$' % (i+1)))
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 3 other locations - About 30 mins to fix
                                                robustcontrol/utilsplot.py on lines 878..878
                                                robustcontrol/utilsplot.py on lines 891..891
                                                robustcontrol/utilsplot.py on lines 939..939

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 32.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 4 locations. Consider refactoring.
                                                Open

                                                        plt.loglog(w, inv_norm_gd[i], label=('$1/||g_{d%s}||_2$' % (i+1)))
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 3 other locations - About 30 mins to fix
                                                robustcontrol/utilsplot.py on lines 866..867
                                                robustcontrol/utilsplot.py on lines 891..891
                                                robustcontrol/utilsplot.py on lines 939..939

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 32.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Similar blocks of code found in 4 locations. Consider refactoring.
                                                Open

                                                        plt.loglog(w, perfect_control[i], label=('$g_{d%s}$' % (i + 1)))
                                                Severity: Major
                                                Found in robustcontrol/utilsplot.py and 3 other locations - About 30 mins to fix
                                                robustcontrol/utilsplot.py on lines 866..867
                                                robustcontrol/utilsplot.py on lines 878..878
                                                robustcontrol/utilsplot.py on lines 891..891

                                                Duplicated Code

                                                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                Tuning

                                                This issue has a mass of 32.

                                                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                Refactorings

                                                Further Reading

                                                Line too long (91 > 79 characters)
                                                Open

                                                your_utilsplot_functionA(G, w_start=-5, w_end=2, axlim=[None, None, 0, 1], more_parameters)
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Blank line contains whitespace
                                                Open

                                                    
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Trailing whitespace is superfluous.

                                                The warning returned varies on whether the line itself is blank,
                                                for easier filtering for those who want to indent their blank lines.
                                                
                                                Okay: spam(1)\n#
                                                W291: spam(1) \n#
                                                W293: class Foo(object):\n    \n    bang = 12

                                                Invalid escape sequence '\s'
                                                Open

                                                                           label=('$\sigma_{%s}(%s)$' % (j, labP)))
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\g'
                                                Open

                                                    plt.axhline(10., color='red', ls=':', label='"Large" $\gamma (G) = 10$')
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\l'
                                                Open

                                                                    '$|\lambda$$_{{{0}, {1}}}|$'.format(i + 1, j + 1)
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\g'
                                                Open

                                                    plt.ylabel('$\gamma$$_d (G)$')
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\l'
                                                Open

                                                            'legend': '$\lambda$$_{{{0}, {1}}}$'
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Expected 2 blank lines, found 1
                                                Open

                                                def rga_nm_plot(G, pairing_list=None, pairing_names=None, w_start=-2,
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Separate top-level function and class definitions with two blank lines.

                                                Method definitions inside a class are separated by a single blank
                                                line.
                                                
                                                Extra blank lines may be used (sparingly) to separate groups of
                                                related functions.  Blank lines may be omitted between a bunch of
                                                related one-liners (e.g. a set of dummy implementations).
                                                
                                                Use blank lines in functions, sparingly, to indicate logical
                                                sections.
                                                
                                                Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                                Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                                Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                                Okay: default = 1\nfoo = 1
                                                Okay: classify = 1\nfoo = 1
                                                
                                                E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                                E302: def a():\n    pass\n\ndef b(n):\n    pass
                                                E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                                E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                                E303: def a():\n\n\n\n    pass
                                                E304: @decorator\n\ndef a():\n    pass
                                                E305: def a():\n    pass\na()
                                                E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                                Line too long (80 > 79 characters)
                                                Open

                                                    plt.setp(bigax.get_xticklabels(), visible=False)  # remove major axis values
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Line too long (84 > 79 characters)
                                                Open

                                                            plt.plot(items.real, items.imag, colors[count]+marker, markersize=msize)
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Line too long (91 > 79 characters)
                                                Open

                                                        plt.semilogx(w, utils.phase(vec[:, i, -1], deg=True), label='$%s_{min}$' % d, lw=2)
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Line too long (80 > 79 characters)
                                                Open

                                                    # however, Kc is not assigned to anything inside of this function currently.
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Invalid escape sequence '\l'
                                                Open

                                                            'legend': '$\lambda$$_{{{1}, {0}}}$'
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\l'
                                                Open

                                                                plt.ylabel('|$\lambda$$_{i,j}$|')
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\s'
                                                Open

                                                        plt.ylabel('$\sigma$')
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Line too long (82 > 79 characters)
                                                Open

                                                    >>> rga_nm_plot(G, [pairing], w_start=-5, w_end=2, axlim=[None, None, 0., 1.])
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Invalid escape sequence '\s'
                                                Open

                                                                           label=('$\sigma_%s+1$' % (i + 1)))
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Blank line contains whitespace
                                                Open

                                                    
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Trailing whitespace is superfluous.

                                                The warning returned varies on whether the line itself is blank,
                                                for easier filtering for those who want to indent their blank lines.
                                                
                                                Okay: spam(1)\n#
                                                W291: spam(1) \n#
                                                W293: class Foo(object):\n    \n    bang = 12

                                                Invalid escape sequence '\g'
                                                Open

                                                    plt.loglog(w, [cndtn_nm(Gfr) for Gfr in freqresp], label='$\gamma (G)$')
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Line too long (87 > 79 characters)
                                                Open

                                                        String that sets the legend location. See matplotlib documentation for options.
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Invalid escape sequence '\s'
                                                Open

                                                            plt.loglog(w, Sv[:, 0], 'b', label=('$\sigma_{max}(%s)$') % labP)
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\s'
                                                Open

                                                            plt.loglog(w, Sv[:, -1], 'g', label=('$\sigma_{min}(%s)$') % labP)
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\s'
                                                Open

                                                            plt.loglog(w, s_min, label='$\sigma_{min}$')
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\s'
                                                Open

                                                    lab1 = '$\sigma_{min} (G(jw))$'
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Line too long (85 > 79 characters)
                                                Open

                                                def plot_zeros_poles(z, labels=None, markers='*', markersize=30, markercolor='blue'):
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Blank line contains whitespace
                                                Open

                                                    
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Trailing whitespace is superfluous.

                                                The warning returned varies on whether the line itself is blank,
                                                for easier filtering for those who want to indent their blank lines.
                                                
                                                Okay: spam(1)\n#
                                                W291: spam(1) \n#
                                                W293: class Foo(object):\n    \n    bang = 12

                                                Line too long (90 > 79 characters)
                                                Open

                                                    plt.scatter(real, imag, marker=markers, color=markercolor, label=labels, s=markersize)
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Blank line contains whitespace
                                                Open

                                                   
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Trailing whitespace is superfluous.

                                                The warning returned varies on whether the line itself is blank,
                                                for easier filtering for those who want to indent their blank lines.
                                                
                                                Okay: spam(1)\n#
                                                W291: spam(1) \n#
                                                W293: class Foo(object):\n    \n    bang = 12

                                                Blank line contains whitespace
                                                Open

                                                    
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Trailing whitespace is superfluous.

                                                The warning returned varies on whether the line itself is blank,
                                                for easier filtering for those who want to indent their blank lines.
                                                
                                                Okay: spam(1)\n#
                                                W291: spam(1) \n#
                                                W293: class Foo(object):\n    \n    bang = 12

                                                Line too long (101 > 79 characters)
                                                Open

                                                    ...     G = 0.01**(-5*s)/((s + 1.72e-4)*(4.32*s + 1))*numpy.matrix([[-34.54*(s + 0.0572), 1.913],
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Line too long (80 > 79 characters)
                                                Open

                                                        The upper limit that the step response cannot exceed. Is only calculated
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Block comment should start with '# '
                                                Open

                                                    #Plot the complex numbers
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Separate inline comments by at least two spaces.

                                                An inline comment is a comment on the same line as a statement.
                                                Inline comments should be separated by at least two spaces from the
                                                statement. They should start with a # and a single space.
                                                
                                                Each line of a block comment starts with a # and a single space
                                                (unless it is indented text inside the comment).
                                                
                                                Okay: x = x + 1  # Increment x
                                                Okay: x = x + 1    # Increment x
                                                Okay: # Block comment
                                                E261: x = x + 1 # Increment x
                                                E262: x = x + 1  #Increment x
                                                E262: x = x + 1  #  Increment x
                                                E265: #Block comment
                                                E266: ### Block comment

                                                Too many blank lines (4)
                                                Open

                                                def mimo_bode(G, w_start=-2, w_end=2,
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Separate top-level function and class definitions with two blank lines.

                                                Method definitions inside a class are separated by a single blank
                                                line.
                                                
                                                Extra blank lines may be used (sparingly) to separate groups of
                                                related functions.  Blank lines may be omitted between a bunch of
                                                related one-liners (e.g. a set of dummy implementations).
                                                
                                                Use blank lines in functions, sparingly, to indicate logical
                                                sections.
                                                
                                                Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                                Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                                Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                                Okay: default = 1\nfoo = 1
                                                Okay: classify = 1\nfoo = 1
                                                
                                                E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                                E302: def a():\n    pass\n\ndef b(n):\n    pass
                                                E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                                E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                                E303: def a():\n\n\n\n    pass
                                                E304: @decorator\n\ndef a():\n    pass
                                                E305: def a():\n    pass\na()
                                                E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                                Line too long (94 > 79 characters)
                                                Open

                                                    # from the current expected result, it is obvious that wC is correct, however wB should be
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Block comment should start with '# '
                                                Open

                                                    #define color index
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Separate inline comments by at least two spaces.

                                                An inline comment is a comment on the same line as a statement.
                                                Inline comments should be separated by at least two spaces from the
                                                statement. They should start with a # and a single space.
                                                
                                                Each line of a block comment starts with a # and a single space
                                                (unless it is indented text inside the comment).
                                                
                                                Okay: x = x + 1  # Increment x
                                                Okay: x = x + 1    # Increment x
                                                Okay: # Block comment
                                                E261: x = x + 1 # Increment x
                                                E262: x = x + 1  #Increment x
                                                E262: x = x + 1  #  Increment x
                                                E265: #Block comment
                                                E266: ### Block comment

                                                Invalid escape sequence '\l'
                                                Open

                                                        plt.ylabel('||$\Lambda$(G) - I||$_{sum}$')
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Blank line contains whitespace
                                                Open

                                                    
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Trailing whitespace is superfluous.

                                                The warning returned varies on whether the line itself is blank,
                                                for easier filtering for those who want to indent their blank lines.
                                                
                                                Okay: spam(1)\n#
                                                W291: spam(1) \n#
                                                W293: class Foo(object):\n    \n    bang = 12

                                                Line too long (114 > 79 characters)
                                                Open

                                                    # TODO: The previous example returned (at some point) the following: (0.55557762223988783, 1.3650078065460138)
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Invalid escape sequence '\s'
                                                Open

                                                        If true, the arguments in the equation are changed to :math:`\sigma_1
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\s'
                                                Open

                                                                           label=('$\sigma_%s$' % (i + 1)))
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\l'
                                                Open

                                                            ax.set_ylabel('$|\lambda$$_{{{0}, j}}|$'.format(i + 1))
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\g'
                                                Open

                                                        plt.loglog(w, condtn_nm_gd[i], label=('$\gamma_{d%s} (G)$' % (i+1)))
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\s'
                                                Open

                                                            plt.loglog(w, s_max, label='$\sigma_{max}$')
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Line too long (90 > 79 characters)
                                                Open

                                                        plt.semilogx(w, utils.phase(vec[:, i, 0], deg=True), label='$%s_{max}$' % d, lw=2)
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Invalid escape sequence '\g'
                                                Open

                                                    plt.ylabel('$\gamma (G)$')
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Line too long (102 > 79 characters)
                                                Open

                                                    ...                                                             [-30.22*s, -9.188*(s + 6.95e-4)]])
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Limit all lines to a maximum of 79 characters.

                                                There are still many devices around that are limited to 80 character
                                                lines; plus, limiting windows to 80 characters makes it possible to
                                                have several windows side-by-side.  The default wrapping on such
                                                devices looks ugly.  Therefore, please limit all lines to a maximum
                                                of 79 characters. For flowing long blocks of text (docstrings or
                                                comments), limiting the length to 72 characters is recommended.
                                                
                                                Reports error E501.

                                                Invalid escape sequence '\l'
                                                Open

                                                                plt.ylabel('||$\Lambda$(G) - I||$_{sum}$')
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\s'
                                                Open

                                                    lab2 = '$\sigma_{min} (R^{-1}G(jw))$'
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\g'
                                                Open

                                                        (G) + 1 \geq |u_i^H g_d|`. This is to avoid a negative log scale.
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                Invalid escape sequence '\s'
                                                Open

                                                    plt.loglog(w, magPlotS1, 'r-', label='Max $\sigma$(S)')
                                                Severity: Minor
                                                Found in robustcontrol/utilsplot.py by pep8

                                                Invalid escape sequences are deprecated in Python 3.6.

                                                Okay: regex = r'\.png$'
                                                W605: regex = '\.png$'

                                                There are no issues that match your filters.

                                                Category
                                                Status