use enum for udpporttype
Build on RHEL9 / build (push) Successful in 2m31s
Build on RHEL8 / build (push) Successful in 3m16s
Run tests using data on local RHEL8 / build (push) Successful in 3m58s

This commit is contained in:
2026-09-01 17:11:02 +02:00
parent 33ee8f9143
commit c488c0063d
11 changed files with 131 additions and 71 deletions
+4 -2
View File
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MPL-2.0
import pytest
from aare import RawFile, ROI
from aare import RawFile, ROI, UDPPortPosition
import numpy as np
@pytest.mark.withdata
@@ -120,6 +120,7 @@ def test_read_eiger_udp_port_disabled(test_data_path):
assert(len(frame) == 2)
assert frame[0].shape == (256, 512)
assert frame[1].shape == (256, 1024)
assert f.master.udp_port_types == [UDPPortPosition.LEFT, UDPPortPosition.RIGHT]
rois = f.master.rois
assert len(rois) == 2
assert rois[0] == ROI(512, 1024, 0, 256)
@@ -130,6 +131,7 @@ def test_read_eiger_udp_port_disabled(test_data_path):
assert frame.shape == (256, 512)
assert(f.master.disabled_udp_ports == [1])
assert f.master.udp_port_types == [UDPPortPosition.TOP, UDPPortPosition.BOTTOM]
rois = f.master.rois
assert len(rois) == 1
assert rois[0] == ROI(0, 512, 256, 512)
@@ -141,7 +143,7 @@ def test_read_eiger_udp_port_disabled(test_data_path):
assert frame[0].shape == (512, 512)
assert frame[1].shape == (512, 512)
assert (f.master.disabled_udp_ports == [1, 3, 5, 7])
assert f.master.udp_port_types == [UDPPortPosition.LEFT, UDPPortPosition.RIGHT]
rois = f.master.rois
assert len(rois) == 2
assert rois[0] == ROI(0, 512, 0, 512)