Function rrc3d
has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
def rrc3d(
c3d_file: str,
show_floor: bool = True,
show_force_plates: bool = True,
show_forces: bool = True,
BiorbdModelNoMesh
has 32 functions (exceeds 20 allowed). Consider refactoring.
class BiorbdModelNoMesh:
"""
A class to handle a biorbd model and its transformations
"""
Function read_vtp_file
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
def read_vtp_file(filename: str) -> dict:
"""
Reads a VTP file and extracts the mesh data.
Parameters
Function rerun_by_frame
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
def rerun_by_frame(
self, name: str = "animation_phase", init: bool = True, clear_last_node: bool = False, notebook: bool = False
) -> None:
if self.nb_phases == 1:
self.phase_reruns[0].rerun_by_frame(name, init, clear_last_node, notebook)
Function rrc3d
has 10 arguments (exceeds 4 allowed). Consider refactoring.
def rrc3d(
Function rerun
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
def rerun(
self, name: str = "animation_phase", init: bool = True, clear_last_node: bool = False, notebook: bool = False
) -> None:
if self.nb_phases == 1:
self.phase_reruns[0].rerun(name, init, clear_last_node, notebook)
Function add_q
has 6 arguments (exceeds 4 allowed). Consider refactoring.
def add_q(
Function add_animated_model
has 5 arguments (exceeds 4 allowed). Consider refactoring.
def add_animated_model(
Function rerun_by_frame
has 5 arguments (exceeds 4 allowed). Consider refactoring.
def rerun_by_frame(
Function add_floor
has 5 arguments (exceeds 4 allowed). Consider refactoring.
def add_floor(
Function add_force_data
has 5 arguments (exceeds 4 allowed). Consider refactoring.
def add_force_data(
Function rerun
has 5 arguments (exceeds 4 allowed). Consider refactoring.
def rerun(
Function crop_video
has 5 arguments (exceeds 4 allowed). Consider refactoring.
def crop_video(
Function add_q
has 5 arguments (exceeds 4 allowed). Consider refactoring.
def add_q(
Function frame_t_span_idx
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
def frame_t_span_idx(self) -> list[list[int]]:
"""
Get the index of the time spans for each frame.
"""
frame_t_span_idx = []
Function to_rerun
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
def to_rerun(self, frame: int) -> None:
if self.properties.ranges is None:
for joint_idx in range(self.nb_q):
name = f"{self.properties.displayed_joint_names[joint_idx]}"
rr.log(