From d99d567523b182856574be5fce86ed64ba545967 Mon Sep 17 00:00:00 2001 From: jasondet Date: Tue, 26 Jul 2022 18:08:56 +0200 Subject: [PATCH 1/3] adding a test to expose bug for Luigi to check --- tests/raw/orca/test_orca_packet.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/raw/orca/test_orca_packet.py diff --git a/tests/raw/orca/test_orca_packet.py b/tests/raw/orca/test_orca_packet.py new file mode 100644 index 000000000..41373d701 --- /dev/null +++ b/tests/raw/orca/test_orca_packet.py @@ -0,0 +1,3 @@ +from pygama.raw.orca import orca_packet + +def test_orca_packet_import(): pass From bfbd0c1fcf564effd5daf696d4481d3cd4963ff5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 26 Jul 2022 16:12:03 +0000 Subject: [PATCH 2/3] style: pre-commit fixes --- tests/raw/orca/test_orca_packet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/raw/orca/test_orca_packet.py b/tests/raw/orca/test_orca_packet.py index 41373d701..120350e9e 100644 --- a/tests/raw/orca/test_orca_packet.py +++ b/tests/raw/orca/test_orca_packet.py @@ -1,3 +1,4 @@ from pygama.raw.orca import orca_packet + def test_orca_packet_import(): pass From 56fd6b7d108862a2a2d6bc88b204bc2d9e99c00e Mon Sep 17 00:00:00 2001 From: jasondet Date: Tue, 26 Jul 2022 18:21:34 +0200 Subject: [PATCH 3/3] make test pass on legend-base --- src/pygama/raw/orca/orca_packet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pygama/raw/orca/orca_packet.py b/src/pygama/raw/orca/orca_packet.py index 52d337a02..43aa8ee87 100644 --- a/src/pygama/raw/orca/orca_packet.py +++ b/src/pygama/raw/orca/orca_packet.py @@ -12,7 +12,7 @@ import numpy as np log = logging.getLogger(__name__) -OrcaPacket = np.ndarray[Any, np.dtype[np.uint32]] +OrcaPacket = np.ndarray#[Any, np.dtype[np.uint32]] def is_short(packet: OrcaPacket) -> bool: