bionc/bionc_casadi/natural_segment.py

Summary

Maintainability
D
2 days
Test Coverage

File natural_segment.py has 593 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from typing import Union, Tuple

import numpy as np
from casadi import MX
from casadi import cos, transpose, vertcat, inv, dot, sum1, horzcat, solve
Severity: Major
Found in bionc/bionc_casadi/natural_segment.py - About 1 day to fix

NaturalSegment has 31 functions (exceeds 20 allowed). Consider refactoring.
Open

class NaturalSegment(AbstractNaturalSegment):
    """
        Class used to define anatomical segment based on natural coordinate.

    Methods
Severity: Minor
Found in bionc/bionc_casadi/natural_segment.py - About 3 hrs to fix

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

    def __init__(
Severity: Major
Found in bionc/bionc_casadi/natural_segment.py - About 1 hr to fix

Function with_cartesian_inertial_parameters has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def with_cartesian_inertial_parameters(
Severity: Major
Found in bionc/bionc_casadi/natural_segment.py - About 1 hr to fix

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

    def add_natural_marker_from_segment_coordinates(
Severity: Minor
Found in bionc/bionc_casadi/natural_segment.py - About 45 mins to fix

There are no issues that match your filters.

Category
Status