rustat-python-api 0.6.6__tar.gz → 0.7.0__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 (21) hide show
  1. {rustat-python-api-0.6.6/rustat_python_api.egg-info → rustat-python-api-0.7.0}/PKG-INFO +1 -1
  2. rustat-python-api-0.7.0/rustat_python_api/kernels/__init__.py +6 -0
  3. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api/kernels/maha.py +7 -2
  4. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api/pitch_control.py +4 -2
  5. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0/rustat_python_api.egg-info}/PKG-INFO +1 -1
  6. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/setup.py +1 -1
  7. rustat-python-api-0.6.6/rustat_python_api/kernels/__init__.py +0 -3
  8. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/LICENSE +0 -0
  9. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/README.md +0 -0
  10. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/pyproject.toml +0 -0
  11. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api/__init__.py +0 -0
  12. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api/config.py +0 -0
  13. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api/models_api.py +0 -0
  14. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api/parser.py +0 -0
  15. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api/processing.py +0 -0
  16. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api/urls.py +0 -0
  17. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api.egg-info/SOURCES.txt +0 -0
  18. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api.egg-info/dependency_links.txt +0 -0
  19. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api.egg-info/requires.txt +0 -0
  20. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/rustat_python_api.egg-info/top_level.txt +0 -0
  21. {rustat-python-api-0.6.6 → rustat-python-api-0.7.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rustat-python-api
3
- Version: 0.6.6
3
+ Version: 0.7.0
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
@@ -0,0 +1,6 @@
1
+ try:
2
+ from .maha import triton_influence
3
+ except ImportError:
4
+ triton_influence = None
5
+
6
+ __all__ = ["triton_influence"]
@@ -1,6 +1,11 @@
1
1
  import torch
2
- import triton
3
- import triton.language as tl
2
+
3
+ try:
4
+ import triton
5
+ import triton.language as tl
6
+ except ImportError:
7
+ triton = None
8
+ tl = None
4
9
 
5
10
 
6
11
  @triton.jit
@@ -7,8 +7,10 @@ import matplotsoccer as mpl
7
7
  import torch
8
8
  from tqdm import tqdm
9
9
 
10
- from .kernels import triton_influence
11
-
10
+ try:
11
+ from .kernels import triton_influence
12
+ except ImportError:
13
+ triton_influence = None
12
14
 
13
15
  class PitchControl:
14
16
  def __init__(self, tracking: pd.DataFrame, events: pd.DataFrame, ball_data: pd.DataFrame = None):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rustat-python-api
3
- Version: 0.6.6
3
+ Version: 0.7.0
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.6.6',
5
+ version='0.7.0',
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',
@@ -1,3 +0,0 @@
1
- from .maha import triton_influence
2
-
3
- __all__ = ["triton_influence"]