Skip to content

Commit

Permalink
back dataclass Parameters, typing in pos3d_in_bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlib committed Apr 5, 2024
1 parent e4870b0 commit bd6f0dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions openptv_python/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from openptv_python.constants import TR_MAX_CAMS


@dataclass
class Parameters:
"""Base class for all parameters with a couple of methods."""

Expand Down
2 changes: 1 addition & 1 deletion openptv_python/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def predict(prev_pos, curr_pos, output):
output[1] = 2 * curr_pos[1] - prev_pos[1]


def pos3d_in_bounds(pos, bounds):
def pos3d_in_bounds(pos: np.ndarray, bounds: TrackPar) -> bool:
"""Check that all components of a pos3d are in their respective bounds.
taken from a track_par object.
Expand Down

0 comments on commit bd6f0dd

Please sign in to comment.