This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TagClass(Base): | |
| __tablename__ = "tag_class" | |
| id = sa.Column(sa.BIGINT, primary_key=True) | |
| class TagClassJoin(Base): | |
| __tablename__ = "tag_class_join" | |
| id = sa.Column(sa.BIGINT, primary_key=True) | |
| tag_id = sa.Column( | |
| sa.BIGINT, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TagClass(Base): | |
| __tablename__ = "tag_class_join" | |
| id = sa.Column(sa.BIGINT, primary_key=True) | |
| tag_id = sa.Column( | |
| sa.BIGINT, | |
| sa.ForeignKey("tag.id", onupdate="CASCADE", ondelete="CASCADE"), | |
| nullable=False, | |
| ) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ShotTakerModel(Base): | |
| __tablename__ = "shot_taker" | |
| id = sa.Column(sa.BIGINT, primary_key=True) | |
| shot_id = sa.Column( | |
| sa.BIGINT, | |
| sa.ForeignKey("shot.id", onupdate="CASCADE", ondelete="CASCADE"), | |
| nullable=False, | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| +----------------+--------+---------+-------+--------------------+ | |
| | name | loc | commits | files | distribution (%) | | |
| +----------------+--------+---------+-------+--------------------+ | |
| | Ivan Malison | 16,925 | 727 | 130 | 75.3 / 80.2 / 85.5 | | |
| | kkathuang | 3,721 | 4 | 69 | 16.5 / 0.4 / 45.4 | | |
| | Mike Kalange | 806 | 151 | 39 | 3.6 / 16.7 / 25.7 | | |
| | mike kalange | 779 | 4 | 35 | 3.5 / 0.4 / 23.0 | | |
| | Andy Malkin | 249 | 9 | 9 | 1.1 / 1.0 / 5.9 | | |
| | dean wenstrand | 2 | 2 | 2 | 0.0 / 0.2 / 1.3 | | |
| | deanwenstrand | 1 | 1 | 1 | 0.0 / 0.1 / 0.7 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import functools | |
| from enum import Enum | |
| from typing import List, Optional, Union | |
| class OpType(Enum): | |
| ATTR = 1 | |
| ITEM = 2 | |
| CALL = 3 | |
| FOREACH = 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| class DirectionalConsistencyFilter: | |
| def __init__( | |
| self, | |
| reference_point=None, | |
| ): | |
| self.reference_point = reference_point or np.array([0.0, 0.0]) | |
| self.manual_reset(reference_point) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def build_Q(self): | |
| # For position | |
| q_pos = self.Q_discrete_white_noise(dim=2, dt=self.dt, var=self.q_var_pos) | |
| # Combine into a single Q matrix | |
| diag_components = [q_pos] * self.dim_pos | |
| return block_diag(*diag_components) | |
| def build_Q(self, q_var_pos, q_var_vel, dim_pos, dt): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import functools | |
| from typing import Callable, Dict, Iterable, List | |
| from intervaltree import Interval, IntervalTree | |
| from ..vision.track import DetectionHistory | |
| from .session import BallDetection, BallIdentifier | |
| class MultiDetectionHistory: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| error: builder for '/nix/store/p9w87cxpwvdb7yi5xfbpi3s5wfkv3ig0-python3.12-cffi-1.15.1.drv' failed with exit code 2; | |
| last 10 log lines: | |
| > cffi/vengine_cpy.py:4: in <module> | |
| > import sys, imp | |
| > E ModuleNotFoundError: No module named 'imp' | |
| > =========================== short test summary info ============================ | |
| > ERROR testing/cffi0/test_zdistutils.py | |
| > ERROR testing/cffi1/test_new_ffi_1.py | |
| > ERROR testing/cffi1/test_parse_c_type.py | |
| > !!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!! |