Skip to content

Commit

Permalink
testing (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
nclack committed May 5, 2023
1 parent b5bf4f9 commit 9cd2915
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_egrabber.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import acquire
import pytest
from acquire import DeviceKind, SampleType
from acquire.acquire import Trigger, TriggerEdge
from acquire.acquire import SignalIOKind, Trigger, TriggerEdge


@pytest.fixture(scope="module")
Expand Down Expand Up @@ -71,8 +71,9 @@ def test_vieworks_configure_triggering(runtime: acquire.Runtime):
# There's really own two things to set. On the VP-151MX, there's only
# one kind of event that can be triggered - the frame exposure start.
p.video[0].camera.settings.input_triggers.frame_start = Trigger(
enable=True, line=0, edge=TriggerEdge.Rising
enable=True, line=0, edge="Rising"
)
assert p.video[0].camera.settings.input_triggers.frame_start.enable

p = runtime.set_configuration(p)
assert p.video[0].camera.settings.input_triggers.frame_start.enable
Expand All @@ -84,7 +85,7 @@ def test_vieworks_configure_triggering(runtime: acquire.Runtime):
# There's really own two things to set. On the VP-151MX, there's only
# one kind of event that can be triggered - the frame exposure start.
p.video[0].camera.settings.input_triggers.frame_start = Trigger(
enable=True, line=1, edge=TriggerEdge.Rising
enable=True, line=1, edge="Rising"
)

p = runtime.set_configuration(p)
Expand Down

0 comments on commit 9cd2915

Please sign in to comment.