c3d-parser 1.5.1__tar.gz → 1.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {c3d_parser-1.5.1/src/c3d_parser.egg-info → c3d_parser-1.5.3}/PKG-INFO +2 -2
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/requirements.txt +1 -1
- c3d_parser-1.5.3/src/c3d_parser/__init__.py +2 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/core/c3d_parser.py +6 -6
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/core/osim_resources/ik_task_set.xml +6 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3/src/c3d_parser.egg-info}/PKG-INFO +2 -2
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser.egg-info/requires.txt +1 -1
- c3d_parser-1.5.1/src/c3d_parser/__init__.py +0 -2
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/LICENSE +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/README.md +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/pyproject.toml +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/setup.cfg +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/application.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/core/c3d_patch.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/core/osim.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/core/osim_resources/external_loads_template.xml +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/core/utils.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/settings/general.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/settings/logging.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/settings/marker_maps/AUC.json +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/settings/marker_maps/FMC.json +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/settings/marker_maps/MH.json +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/settings/marker_maps/QCMAS.json +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/settings/marker_maps/RBWH.json +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/settings/marker_maps/RCH.json +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/settings/marker_maps/Sydney.json +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/splash_rc.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/splashscreen.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/dialogs/about_dialog.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/dialogs/delete_marker_set_dialog.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/dialogs/marker_set_dialog.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/dialogs/marker_set_import_dialog.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/dialogs/options_dialog.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/main_window.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/ui/resources_rc.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/ui/ui_delete_marker_set_dialog.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/ui/ui_main_window.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/ui/ui_marker_set_dialog.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/ui/ui_marker_set_import_dialog.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/ui/ui_options_dialog.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/utils.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/widgets.py +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser.egg-info/SOURCES.txt +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser.egg-info/dependency_links.txt +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser.egg-info/entry_points.txt +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser.egg-info/top_level.txt +0 -0
- {c3d_parser-1.5.1 → c3d_parser-1.5.3}/tests/test_parser.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: c3d-parser
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.3
|
|
4
4
|
Summary: C3D parser for gait data harmonisation.
|
|
5
5
|
Author-email: Timothy Salemink <tim.nicolas@outlook.com>, Sally Jack <sallyjaack@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -12,7 +12,7 @@ Requires-Dist: numpy==1.26.4
|
|
|
12
12
|
Requires-Dist: pandas
|
|
13
13
|
Requires-Dist: c3d==0.5.2
|
|
14
14
|
Requires-Dist: trc-data-reader>=0.4.1
|
|
15
|
-
Requires-Dist: opensim-model-creator==0.8.
|
|
15
|
+
Requires-Dist: opensim-model-creator==0.8.2
|
|
16
16
|
Requires-Dist: PySide6
|
|
17
17
|
Requires-Dist: matplotlib
|
|
18
18
|
Requires-Dist: mplcursors
|
|
@@ -1631,13 +1631,13 @@ def add_medial_knee_markers(frame_data, left_knee_width, right_knee_width, marke
|
|
|
1631
1631
|
This function takes a pandas.DataFrame of TRC data, extracts a single frame from the data
|
|
1632
1632
|
and adds the medial knee markers if they are missing. It returns the frame as a pandas.Series.
|
|
1633
1633
|
|
|
1634
|
-
The ``padding``
|
|
1635
|
-
|
|
1634
|
+
The ``padding`` values are the thickness of the baseplate used to attach the markers. Knee
|
|
1635
|
+
widths are measured over the skin.
|
|
1636
1636
|
"""
|
|
1637
1637
|
frame = frame_data.iloc[len(frame_data) // 2].copy()
|
|
1638
1638
|
|
|
1639
|
-
medial_padding =
|
|
1640
|
-
lateral_padding =
|
|
1639
|
+
medial_padding = 2
|
|
1640
|
+
lateral_padding = 2
|
|
1641
1641
|
|
|
1642
1642
|
for side in ['L', 'R']:
|
|
1643
1643
|
medial_label = f'{side}KNEM'
|
|
@@ -1651,7 +1651,7 @@ def add_medial_knee_markers(frame_data, left_knee_width, right_knee_width, marke
|
|
|
1651
1651
|
magnitude = np.sqrt((np.array(axix_vector) ** 2.0).sum(-1))
|
|
1652
1652
|
knee_axis = np.divide(axix_vector, magnitude)
|
|
1653
1653
|
|
|
1654
|
-
# Adjust knee width to account for marker-radius,
|
|
1654
|
+
# Adjust knee width to account for marker-radius, baseplate.
|
|
1655
1655
|
knee_width = left_knee_width if side == 'L' else right_knee_width
|
|
1656
1656
|
knee_width = knee_width + marker_diameter + medial_padding + lateral_padding
|
|
1657
1657
|
medial_marker = lateral_marker + knee_width * knee_axis
|
|
@@ -1668,7 +1668,7 @@ def create_osim_model(static_trc, dynamic_trc, static_marker_data, marker_diamet
|
|
|
1668
1668
|
rotation_matrix = np.array([[1, 0, 0], [0, 0, 1], [0, -1, 0]])
|
|
1669
1669
|
static_marker_data = {k: np.dot(rotation_matrix, v) for k, v in static_marker_data.items()}
|
|
1670
1670
|
subject_info = get_subject_info(static_data)
|
|
1671
|
-
marker_radius = marker_diameter / 2
|
|
1671
|
+
marker_radius = marker_diameter / 2 + 2 # Include the 2mm marker baseplate.
|
|
1672
1672
|
|
|
1673
1673
|
model_path = create_model(static_trc, dynamic_trc, output_directory, static_marker_data, subject_info,
|
|
1674
1674
|
marker_radius, left_foot_flat, right_foot_flat,
|
|
@@ -74,6 +74,12 @@
|
|
|
74
74
|
<!--Weight given to the task when solving inverse kinematics problems, default is 0.-->
|
|
75
75
|
<weight>1</weight>
|
|
76
76
|
</IKMarkerTask>
|
|
77
|
+
<IKMarkerTask name="SACR">
|
|
78
|
+
<!--Whether or not this task will be used during inverse kinematics solve, default is true.-->
|
|
79
|
+
<apply>true</apply>
|
|
80
|
+
<!--Weight given to the task when solving inverse kinematics problems, default is 0.-->
|
|
81
|
+
<weight>2</weight>
|
|
82
|
+
</IKMarkerTask>
|
|
77
83
|
<IKMarkerTask name="RHEE">
|
|
78
84
|
<!--Whether or not this task will be used during inverse kinematics solve, default is true.-->
|
|
79
85
|
<apply>true</apply>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: c3d-parser
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.3
|
|
4
4
|
Summary: C3D parser for gait data harmonisation.
|
|
5
5
|
Author-email: Timothy Salemink <tim.nicolas@outlook.com>, Sally Jack <sallyjaack@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -12,7 +12,7 @@ Requires-Dist: numpy==1.26.4
|
|
|
12
12
|
Requires-Dist: pandas
|
|
13
13
|
Requires-Dist: c3d==0.5.2
|
|
14
14
|
Requires-Dist: trc-data-reader>=0.4.1
|
|
15
|
-
Requires-Dist: opensim-model-creator==0.8.
|
|
15
|
+
Requires-Dist: opensim-model-creator==0.8.2
|
|
16
16
|
Requires-Dist: PySide6
|
|
17
17
|
Requires-Dist: matplotlib
|
|
18
18
|
Requires-Dist: mplcursors
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/core/osim_resources/external_loads_template.xml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/dialogs/delete_marker_set_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
{c3d_parser-1.5.1 → c3d_parser-1.5.3}/src/c3d_parser/view/dialogs/marker_set_import_dialog.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|