sports2d 0.8.10__py3-none-any.whl → 0.8.11__py3-none-any.whl

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.
Sports2D/process.py CHANGED
@@ -60,6 +60,7 @@ import copy
60
60
  import shutil
61
61
  import os
62
62
  import re
63
+ import platform
63
64
  from importlib.metadata import version
64
65
  from datetime import datetime
65
66
  import itertools as it
@@ -788,18 +789,23 @@ def pose_plots(trc_data_unfiltered, trc_data, person_id):
788
789
  OUTPUT:
789
790
  - matplotlib window with tabbed figures for each keypoint
790
791
  '''
791
-
792
- mpl.use('qt5agg')
792
+ os_name = platform.system()
793
+
794
+ if os_name == 'Windows':
795
+ mpl.use('qt5agg') # windows
793
796
  mpl.rc('figure', max_open_warning=0)
794
797
 
795
798
  keypoints_names = trc_data.columns[1::3]
796
-
799
+
797
800
  pw = plotWindow()
798
801
  pw.MainWindow.setWindowTitle('Person'+ str(person_id) + ' coordinates') # Main title
799
802
 
800
803
  for id, keypoint in enumerate(keypoints_names):
801
804
  f = plt.figure()
802
- f.canvas.manager.window.setWindowTitle(keypoint + ' Plot')
805
+ if os_name == 'Windows':
806
+ f.canvas.manager.window.setWindowTitle(keypoint + ' Plot') # windows
807
+ elif os_name == 'Darwin': # macOS
808
+ f.canvas.manager.set_window_title(keypoint + ' Plot') # mac
803
809
 
804
810
  axX = plt.subplot(211)
805
811
  plt.plot(trc_data_unfiltered.iloc[:,0], trc_data_unfiltered.iloc[:,id*3+1], label='unfiltered')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sports2d
3
- Version: 0.8.10
3
+ Version: 0.8.11
4
4
  Summary: Compute 2D human pose and angles from a video or a webcam.
5
5
  Author-email: David Pagnon <contact@david-pagnon.com>
6
6
  Maintainer-email: David Pagnon <contact@david-pagnon.com>
@@ -11,16 +11,16 @@ Content/sports2d_opensim.gif,sha256=XP1AcjqhbGcJknXUoNJjPWAwaM9ahZafbDgLWvzKJs4,
11
11
  Sports2D/Sports2D.ipynb,sha256=VnOVjIl6ndnCJTT13L4W5qTw4T-TQDF3jt3-wxnXDqM,2427047
12
12
  Sports2D/Sports2D.py,sha256=tbQi_d6GXMqFkSd1_FRxyl6oA4CXEJH0g-lEskmR4mI,33521
13
13
  Sports2D/__init__.py,sha256=BuUkPEdItxlkeqz4dmoiPwZLkgAfABJK3KWQ1ujTGwE,153
14
- Sports2D/process.py,sha256=UovoTjXSxlrTNnuog9MlQu_2HCAypovDVUKIUIZ8k_c,111353
14
+ Sports2D/process.py,sha256=pcPW5qpZzD-L-ZiRFZn3TWeywg3ojlgjhiw2FPkGodA,111598
15
15
  Sports2D/Demo/Config_demo.toml,sha256=jiPGr6JbePu1tItgRxdAu45mwFqr3RcIi_tfhO2ik1g,14027
16
16
  Sports2D/Demo/demo.mp4,sha256=2aZkFxhWR7ESMEtXCT8MGA83p2jmoU2sp1ylQfO3gDk,3968304
17
17
  Sports2D/Utilities/__init__.py,sha256=BuUkPEdItxlkeqz4dmoiPwZLkgAfABJK3KWQ1ujTGwE,153
18
18
  Sports2D/Utilities/common.py,sha256=idMRmesFv5BPX-5g3z5dOVa7SpS_8tNgijvGrOZlR-k,11185
19
19
  Sports2D/Utilities/filter.py,sha256=rfZcqofjllKI_5ovZTKEAmyjOZpB_PzbAJ0P874T8Ak,4973
20
20
  Sports2D/Utilities/tests.py,sha256=3-slY2teKd78q0NzfJ2H84xRFSNXvGyDwew27oHJfrY,4740
21
- sports2d-0.8.10.dist-info/licenses/LICENSE,sha256=f4qe3nE0Y7ltJho5w-xAR0jI5PUox5Xl-MsYiY7ZRM8,1521
22
- sports2d-0.8.10.dist-info/METADATA,sha256=5qmY0gVTZV3vZkr5n9QizGfNwbIHDT5x2tqUoSdvvMs,38443
23
- sports2d-0.8.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
- sports2d-0.8.10.dist-info/entry_points.txt,sha256=V8dFDIXatz9VvoGgoHzb2wE71C9-f85K6_OjnEQlxww,108
25
- sports2d-0.8.10.dist-info/top_level.txt,sha256=cWWBiDD2WbQXMoIoN6-9et9U2t2c_ZKo2JtBqO5uN-k,17
26
- sports2d-0.8.10.dist-info/RECORD,,
21
+ sports2d-0.8.11.dist-info/licenses/LICENSE,sha256=f4qe3nE0Y7ltJho5w-xAR0jI5PUox5Xl-MsYiY7ZRM8,1521
22
+ sports2d-0.8.11.dist-info/METADATA,sha256=rKNwu5yaVBb4c161s5SFrGYxyJWoQdqcyzPn5YxEwGA,38443
23
+ sports2d-0.8.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ sports2d-0.8.11.dist-info/entry_points.txt,sha256=V8dFDIXatz9VvoGgoHzb2wE71C9-f85K6_OjnEQlxww,108
25
+ sports2d-0.8.11.dist-info/top_level.txt,sha256=cWWBiDD2WbQXMoIoN6-9et9U2t2c_ZKo2JtBqO5uN-k,17
26
+ sports2d-0.8.11.dist-info/RECORD,,