Skip to content

Commit

Permalink
Merge pull request DiamondLightSource/hyperion#24 from DiamondLightSo…
Browse files Browse the repository at this point in the history
…urce/fix_zebra_config

fix zebra config to work on i03
NOTE: Commit originally came from https://github.com/DiamondLightSource/python-artemis
  • Loading branch information
bentom08 authored Feb 11, 2022
2 parents 2dbe455 + e425834 commit b31d359
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/artemis/devices/system_tests/test_zebra_system.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import pytest

from src.artemis.devices.zebra import Zebra, PositionCompare
from src.artemis.devices.zebra import (
Zebra,
TTL_DETECTOR,
TTL_SHUTTER,
PC_PULSE,
OR1,
IN3_TTL,
IN4_TTL,
)


@pytest.fixture()
Expand Down Expand Up @@ -29,10 +37,12 @@ def test_disarm(zebra: Zebra):
@pytest.mark.s03
def test_zebra_stage(zebra: Zebra):
zebra.stage()
assert zebra.pc.is_armed()
assert zebra.output.out_pvs[TTL_DETECTOR].get() == IN3_TTL
assert zebra.output.out_pvs[TTL_SHUTTER].get() == IN4_TTL


@pytest.mark.s03
def test_zebra_unstage(zebra: Zebra):
zebra.unstage()
assert not zebra.pc.is_armed()
assert zebra.output.out_pvs[TTL_DETECTOR].get() == PC_PULSE
assert zebra.output.out_pvs[TTL_SHUTTER].get() == OR1

0 comments on commit b31d359

Please sign in to comment.