Bug inertia calculation

Description

mode_1(calculate_inertia_by_components) not working, the code throws an error