fepegar/torchio

View on GitHub
src/torchio/transforms/preprocessing/spatial/resample.py

Summary

Maintainability
A
3 hrs
Test Coverage

File resample.py has 274 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from collections.abc import Iterable
from numbers import Number
from pathlib import Path
from typing import Optional
from typing import Sized
Severity: Minor
Found in src/torchio/transforms/preprocessing/spatial/resample.py - About 2 hrs to fix

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

        def __init__(
    Severity: Minor
    Found in src/torchio/transforms/preprocessing/spatial/resample.py - About 45 mins to fix

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

          def _set_resampler_reference(
      Severity: Minor
      Found in src/torchio/transforms/preprocessing/spatial/resample.py - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status