debugging attempt for py 3.10 and 3.11

This commit is contained in:
davidpagnon 2024-07-30 16:52:49 +02:00
parent 1d275044f0
commit d5be00e9b1
2 changed files with 6 additions and 1 deletions

View File

@ -66,4 +66,4 @@ jobs:
PYTHONIOENCODING: utf-8
run: |
cd Pose2Sim/Utilities
conda run -n pose2sim pytest -v tests.py
conda run -n pose2sim pytest -v tests.py --capture=sys

View File

@ -175,6 +175,11 @@ def time_lagged_cross_corr(camx, camy, lag_range, show=True, ref_cam_id=0, cam_i
if isinstance(lag_range, int):
lag_range = [-lag_range, lag_range]
import hashlib
print(repr(list(camx)), repr(list(camy)))
hashlib.md5(pd.util.hash_pandas_object(camx).values).hexdigest()
hashlib.md5(pd.util.hash_pandas_object(camy).values).hexdigest()
pearson_r = [camx.corr(camy.shift(lag)) for lag in range(lag_range[0], lag_range[1])]
offset = int(np.floor(len(pearson_r)/2)-np.argmax(pearson_r))
if not np.isnan(pearson_r).all():