durandtibo/redcat

View on GitHub
src/redcat/ba/core.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

File core.py has 2740 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

r"""Contain the implementation of ``BatchedArray``.

``BatchedArray`` is a custom NumPy array container to make batch
manipulation easier.
"""
Severity: Major
Found in src/redcat/ba/core.py - About 1 wk to fix

    BatchedArray has 130 functions (exceeds 20 allowed). Consider refactoring.
    Wontfix

    class BatchedArray(BaseBatch[np.ndarray], np.lib.mixins.NDArrayOperatorsMixin):
        r"""Implement a wrapper around a NumPy array to track the batch
        axis."""
    
        def __init__(self, data: ArrayLike, batch_axis: int = 0, check: bool = True) -> None:
    Severity: Major
    Found in src/redcat/ba/core.py - About 2 days to fix

      Function full_like has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Wontfix

          def full_like(
      Severity: Minor
      Found in src/redcat/ba/core.py - About 45 mins to fix

        Function zeros_like has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Wontfix

            def zeros_like(
        Severity: Minor
        Found in src/redcat/ba/core.py - About 35 mins to fix

          Function empty_like has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Wontfix

              def empty_like(
          Severity: Minor
          Found in src/redcat/ba/core.py - About 35 mins to fix

            Function ones_like has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Wontfix

                def ones_like(
            Severity: Minor
            Found in src/redcat/ba/core.py - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status