From 312b7a0917045ea8b0c367c09811b2474550bd95 Mon Sep 17 00:00:00 2001 From: Serafadam Date: Thu, 16 Jan 2025 11:28:30 +0100 Subject: [PATCH] fix python tests --- .github/workflows/test.workflow.yml | 2 +- examples/python/RGBD/rgbd.py | 4 ++-- examples/python/RGBD/rgbd_o3d.py | 4 ++-- examples/python/RGBD/visualizer_rgbd.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.workflow.yml b/.github/workflows/test.workflow.yml index e48512e4c..873b6dd6e 100644 --- a/.github/workflows/test.workflow.yml +++ b/.github/workflows/test.workflow.yml @@ -80,7 +80,7 @@ jobs: export DISPLAY=:99 xdpyinfo -display $DISPLAY >/dev/null 2>&1 || (Xvfb $DISPLAY &) source venv/bin/activate # Activate virtual environment - python3 -m pip install jinja2 + python3 -m pip install jinja2 rerun-sdk open3d cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D HUNTER_ROOT=$HOME/.hun2_${{ matrix.flavor }} -D DEPTHAI_BUILD_EXAMPLES=ON -D DEPTHAI_BUILD_TESTS=ON -D DEPTHAI_TEST_EXAMPLES=ON -D DEPTHAI_BUILD_PYTHON=ON -D DEPTHAI_PYTHON_TEST_EXAMPLES=ON -D DEPTHAI_PYTHON_ENABLE_EXAMPLES=ON cmake --build build --parallel 4 --config Release cd tests diff --git a/examples/python/RGBD/rgbd.py b/examples/python/RGBD/rgbd.py index c62ab6368..e8f895c67 100644 --- a/examples/python/RGBD/rgbd.py +++ b/examples/python/RGBD/rgbd.py @@ -39,8 +39,8 @@ def run(self): rgbd = p.create(dai.node.RGBD).build() color.build() rerunViewer = RerunNode() - left.build(dai.CameraBoardSocket.LEFT) - right.build(dai.CameraBoardSocket.RIGHT) + left.build(dai.CameraBoardSocket.CAM_B) + right.build(dai.CameraBoardSocket.CAM_C) out = color.requestOutput((1280,720), dai.ImgFrame.Type.RGB888i) diff --git a/examples/python/RGBD/rgbd_o3d.py b/examples/python/RGBD/rgbd_o3d.py index 3e7bf3aa6..a6a415618 100644 --- a/examples/python/RGBD/rgbd_o3d.py +++ b/examples/python/RGBD/rgbd_o3d.py @@ -57,8 +57,8 @@ def key_callback(vis, action, mods): rgbd = p.create(dai.node.RGBD).build() color.build() o3dViewer = O3DNode() - left.build(dai.CameraBoardSocket.LEFT) - right.build(dai.CameraBoardSocket.RIGHT) + left.build(dai.CameraBoardSocket.CAM_B) + right.build(dai.CameraBoardSocket.CAM_C) out = color.requestOutput((1280,720), dai.ImgFrame.Type.RGB888i) diff --git a/examples/python/RGBD/visualizer_rgbd.py b/examples/python/RGBD/visualizer_rgbd.py index 1830c328a..72c087e4d 100644 --- a/examples/python/RGBD/visualizer_rgbd.py +++ b/examples/python/RGBD/visualizer_rgbd.py @@ -19,8 +19,8 @@ rgbd = p.create(dai.node.RGBD).build() color.build() - left.build(dai.CameraBoardSocket.LEFT) - right.build(dai.CameraBoardSocket.RIGHT) + left.build(dai.CameraBoardSocket.CAM_B) + right.build(dai.CameraBoardSocket.CAM_C) out = color.requestOutput((1280, 720))