aburrell/apexpy

View on GitHub

Showing 28 of 90 total issues

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

    def bvectors_apex(self, lat, lon, height, coords='geo', precision=1e-10):
Severity: Minor
Found in apexpy/apex.py - About 35 mins to fix

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

        def map_V_to_height(self, alat, alon, height, newheight, vdata):
    Severity: Minor
    Found in apexpy/apex.py - About 35 mins to fix

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

          def map_E_to_height(self, alat, alon, height, newheight, edata):
      Severity: Minor
      Found in apexpy/apex.py - About 35 mins to fix

        Function subsol has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

        def subsol(datetime):
            """Finds subsolar geocentric latitude and longitude.
        
            Parameters
            ----------
        Severity: Minor
        Found in apexpy/helpers.py - About 35 mins 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 test_geo2apexall_array has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Open

            def test_geo2apexall_array(self, arr_shape):
                """Test Apex/fortran geo2apexall interface consistency for arrays.
        
                Parameters
                ----------
        Severity: Minor
        Found in apexpy/tests/test_Apex.py - About 35 mins 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 execute_command_line has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

            def execute_command_line(self, command, command_kwargs=None,
                                     pipe_out=False):
                """Execute the command and load data from self.outfile
        
                Parameters
        Severity: Minor
        Found in apexpy/tests/test_cmd.py - About 25 mins 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 igrf_file has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

        def igrf_file(max_attempts=100):
            """A fixture for handling the coefficient file.
        
            Parameters
            ----------
        Severity: Minor
        Found in apexpy/tests/test_Apex.py - About 25 mins 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 test_basevectors_array has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
        Open

            def test_basevectors_array(self, arr_shape, bv_coord, ivec):
                """Test the output shape for array inputs.
        
                Parameters
                ----------
        Severity: Minor
        Found in apexpy/tests/test_Apex.py - About 25 mins 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

        Severity
        Category
        Status
        Source
        Language