LiberTEM/LiberTEM

View on GitHub

Showing 270 of 903 total issues

Function _run_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
Open

    def _run_sync(
Severity: Major
Found in src/libertem/api.py - About 35 mins to fix

    Function _run_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
    Open

        def _run_sync(
    Severity: Major
    Found in src/libertem/api.py - About 35 mins to fix

      Function _run_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
      Open

          def _run_sync(
      Severity: Major
      Found in src/libertem/api.py - About 35 mins to fix

        Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
        Open

            def _run_async(
        Severity: Major
        Found in src/libertem/api.py - About 35 mins to fix

          Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
          Open

              def _run_async(
          Severity: Major
          Found in src/libertem/api.py - About 35 mins to fix

            Function _run_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
            Open

                def _run_sync(
            Severity: Major
            Found in src/libertem/api.py - About 35 mins to fix

              Function cbed_frame has 9 arguments (exceeds 8 allowed). Consider refactoring.
              Open

              def cbed_frame(
              Severity: Major
              Found in src/libertem/utils/generate.py - About 35 mins to fix

                Function _run_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
                Open

                    def _run_sync(
                Severity: Major
                Found in src/libertem/api.py - About 35 mins to fix

                  Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
                  Open

                      def _run_async(
                  Severity: Major
                  Found in src/libertem/api.py - About 35 mins to fix

                    Function run_udf_iter has 9 arguments (exceeds 8 allowed). Consider refactoring.
                    Open

                        def run_udf_iter(
                    Severity: Major
                    Found in src/libertem/api.py - About 35 mins to fix

                      Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
                      Open

                          def _run_async(
                      Severity: Major
                      Found in src/libertem/api.py - About 35 mins to fix

                        Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
                        Open

                            def _run_async(
                        Severity: Major
                        Found in src/libertem/api.py - About 35 mins to fix

                          Function _run_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
                          Open

                              def _run_sync(
                          Severity: Major
                          Found in src/libertem/api.py - About 35 mins to fix

                            Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
                            Open

                                def _run_async(
                            Severity: Major
                            Found in src/libertem/api.py - About 35 mins to fix

                              Function radial_mask_factory has 9 arguments (exceeds 8 allowed). Consider refactoring.
                              Open

                              def radial_mask_factory(detector_y, detector_x, cx, cy, ri, ro, n_bins, max_order, use_sparse):
                              Severity: Major
                              Found in src/libertem/analysis/radialfourier.py - About 35 mins to fix

                                Function __init__ has 9 arguments (exceeds 8 allowed). Consider refactoring.
                                Open

                                    def __init__(self, mask_factories, use_torch=True, use_sparse=None, mask_count=None,
                                Severity: Major
                                Found in src/libertem/udf/masks.py - About 35 mins to fix

                                  Function __init__ has 9 arguments (exceeds 8 allowed). Consider refactoring.
                                  Open

                                      def __init__(
                                  Severity: Major
                                  Found in src/libertem/udf/base.py - About 35 mins to fix

                                    Function run_for_dataset_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
                                    Open

                                        def run_for_dataset_sync(
                                    Severity: Major
                                    Found in src/libertem/udf/base.py - About 35 mins to fix

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

                                      def hologram_frame(amp, phi,
                                                         counts=1000.,
                                                         sampling=5.,
                                                         visibility=1.,
                                                         f_angle=30.,
                                      Severity: Minor
                                      Found in src/libertem/utils/generate.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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                      Open

                                          def get(self, block: bool = True, timeout: Optional[float] = None):
                                              """
                                              Receive a message. Memory of the payload will be cleaned up after the
                                              context manager scope, so don't keep references outside of it!
                                      
                                      
                                      Severity: Minor
                                      Found in src/libertem/executor/utils/shmqueue.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

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language