Skip to content

Commit

Permalink
fix python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam committed Jan 16, 2025
1 parent b11585f commit 312b7a0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/python/RGBD/rgbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
4 changes: 2 additions & 2 deletions examples/python/RGBD/rgbd_o3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
4 changes: 2 additions & 2 deletions examples/python/RGBD/visualizer_rgbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))


Expand Down

0 comments on commit 312b7a0

Please sign in to comment.