diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9f49aa5..16cd076 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -77,7 +77,7 @@ jobs: shell: micromamba-shell {0} run: | pytest --collect-only -qq tests/workflow - pytest --collect-only -q tests/workflow | head -n -2 | wc -l + pytest --collect-only -q -W ignore::Warning tests/workflow | head -n -2 | wc -l env: AP_PORT: 25440 AP_HOST: localhost @@ -169,7 +169,7 @@ jobs: shell: micromamba-shell {0} run: | pytest --collect-only -qq tests/video_processor - pytest --collect-only -q tests/video_processor | head -n -2 | wc -l + pytest --collect-only -q -W ignore::Warning tests/video_processor | head -n -2 | wc -l env: AP_PORT: 25440 AP_HOST: localhost @@ -324,7 +324,7 @@ jobs: shell: micromamba-shell {0} run: | pytest --collect-only -qq tests/engine tests/interface - pytest --collect-only -q tests/engine tests/interface | head -n -2 | wc -l + pytest --collect-only -q -W ignore::Warning tests/engine tests/interface | head -n -2 | wc -l env: AP_PORT: 25440 AP_PORT_ROAD_1: 25441 diff --git a/spatialyze/video_processor/utils/insert_trajectory.py b/spatialyze/video_processor/utils/insert_trajectory.py index c1a44f5..c959708 100644 --- a/spatialyze/video_processor/utils/insert_trajectory.py +++ b/spatialyze/video_processor/utils/insert_trajectory.py @@ -30,7 +30,7 @@ def insert_trajectory( ) = trajectory prevPoint: Float3 | None = None - st, en = min(ids), max(ids) + st, en = ids[0], ids[-1] tuples: list[PointTuple[Float3] | None] = [None for _ in range(st, en + 1)] P = TypeVar("P", Float3, Point)