Skip to content

Commit bd6f0dd

Browse files
committed
back dataclass Parameters, typing in pos3d_in_bounds
1 parent e4870b0 commit bd6f0dd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

openptv_python/parameters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from openptv_python.constants import TR_MAX_CAMS
99

1010

11+
@dataclass
1112
class Parameters:
1213
"""Base class for all parameters with a couple of methods."""
1314

openptv_python/track.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def predict(prev_pos, curr_pos, output):
189189
output[1] = 2 * curr_pos[1] - prev_pos[1]
190190

191191

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

0 commit comments

Comments
 (0)