Skip to content

Commit 2ecf530

Browse files
committed
removed obsolete lsqadj.py
1 parent bd6f0dd commit 2ecf530

File tree

4 files changed

+3
-666
lines changed

4 files changed

+3
-666
lines changed

openptv_python/lsqadj.py

Lines changed: 0 additions & 270 deletions
This file was deleted.

openptv_python/track.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ def pos3d_in_bounds(pos: np.ndarray, bounds: TrackPar) -> bool:
249249

250250
# return angle, acc
251251

252-
252+
@njit(float64[:](float64[:], float64[:], float64[:]), cache=True, fastmath=True, nogil=True, parallel=True)
253253
def angle_acc(
254254
start: np.ndarray, pred: np.ndarray, cand: np.ndarray
255-
) -> Tuple[float, float]:
255+
) -> np.ndarray:
256256
"""Calculate the angle between the (1st order) numerical velocity vectors.
257257
258258
to the predicted next_frame position and to the candidate actual position. The
@@ -288,7 +288,7 @@ def angle_acc(
288288
dot_product / (norm_start_pred * norm_start_cand)
289289
)
290290

291-
return float(angle), float(acc)
291+
return np.array([angle, acc])
292292

293293

294294

0 commit comments

Comments
 (0)