rustat-python-api 0.7.9__tar.gz → 0.7.10__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.
Files changed (24) hide show
  1. {rustat-python-api-0.7.9/rustat_python_api.egg-info → rustat-python-api-0.7.10}/PKG-INFO +1 -1
  2. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/pitch_control.py +18 -12
  3. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10/rustat_python_api.egg-info}/PKG-INFO +1 -1
  4. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/setup.py +1 -1
  5. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/LICENSE +0 -0
  6. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/README.md +0 -0
  7. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/pyproject.toml +0 -0
  8. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/__init__.py +0 -0
  9. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/config.py +0 -0
  10. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/kernels/__init__.py +0 -0
  11. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/kernels/maha.py +0 -0
  12. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/matching/__init__.py +0 -0
  13. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/matching/dataloader.py +0 -0
  14. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/matching/pc_adder.py +0 -0
  15. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/matching/tr_adder.py +0 -0
  16. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/models_api.py +0 -0
  17. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/parser.py +0 -0
  18. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/processing.py +0 -0
  19. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api/urls.py +0 -0
  20. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api.egg-info/SOURCES.txt +0 -0
  21. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api.egg-info/dependency_links.txt +0 -0
  22. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api.egg-info/requires.txt +0 -0
  23. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/rustat_python_api.egg-info/top_level.txt +0 -0
  24. {rustat-python-api-0.7.9 → rustat-python-api-0.7.10}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rustat-python-api
3
- Version: 0.7.9
3
+ Version: 0.7.10
4
4
  Summary: A Python wrapper for RuStat API
5
5
  Home-page: https://github.com/dailydaniel/rustat-python-api
6
6
  Author: Daniel Zholkovsky
@@ -734,21 +734,27 @@ class PitchControl:
734
734
 
735
735
  for k in self.locs_home[half].keys():
736
736
  # if len(self.locs_home[half][k]) >= tp:
737
- if np.isfinite(self.locs_home[half][k][tp, :]).all():
738
- plt.scatter(
739
- self.locs_home[half][k][tp, 0],
740
- self.locs_home[half][k][tp, 1],
741
- color="darkgrey",
742
- )
737
+ try:
738
+ if np.isfinite(self.locs_home[half][k][tp, :]).all():
739
+ plt.scatter(
740
+ self.locs_home[half][k][tp, 0],
741
+ self.locs_home[half][k][tp, 1],
742
+ color="darkgrey",
743
+ )
744
+ except Exception as e:
745
+ print(f"No data for player {k}: {e}")
743
746
 
744
747
  for k in self.locs_away[half].keys():
745
748
  # if len(self.locs_away[half][k]) >= tp:
746
- if np.isfinite(self.locs_away[half][k][tp, :]).all():
747
- plt.scatter(
748
- self.locs_away[half][k][tp, 0],
749
- self.locs_away[half][k][tp, 1],
750
- color="black",
751
- )
749
+ try:
750
+ if np.isfinite(self.locs_away[half][k][tp, :]).all():
751
+ plt.scatter(
752
+ self.locs_away[half][k][tp, 0],
753
+ self.locs_away[half][k][tp, 1],
754
+ color="black",
755
+ )
756
+ except Exception as e:
757
+ print(f"No data for player {k}: {e}")
752
758
 
753
759
  plt.scatter(
754
760
  self.locs_ball[half][tp, 0], self.locs_ball[half][tp, 1], color="red"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rustat-python-api
3
- Version: 0.7.9
3
+ Version: 0.7.10
4
4
  Summary: A Python wrapper for RuStat API
5
5
  Home-page: https://github.com/dailydaniel/rustat-python-api
6
6
  Author: Daniel Zholkovsky
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="rustat-python-api",
5
- version="0.7.9",
5
+ version="0.7.10",
6
6
  description="A Python wrapper for RuStat API",
7
7
  long_description=open("README.md").read(),
8
8
  long_description_content_type="text/markdown",