From fb829af5d31384631dc6b8e5f90ed234cc573e11 Mon Sep 17 00:00:00 2001 From: Neil Vaytet Date: Mon, 3 Mar 2025 14:49:48 +0100 Subject: [PATCH 1/2] suppress new warnings that has appeard from scippnexus update --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 3eca93ec..178014c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,6 +75,7 @@ filterwarnings = [ 'ignore:\n.*Sentinel is not a public part of the traitlets API.*:DeprecationWarning', "ignore:.*metadata to be logged in the data array, it is necessary to install the orsopy package.:UserWarning", "ignore:.*A transformation needs a vector attribute. Falling back to returning underlying value.:UserWarning", + "ignore:Invalid transformation.*'vector':UserWarning", ] [tool.ruff] From fb67f926221cdfa9e52fbfb0d086dacb2239133a Mon Sep 17 00:00:00 2001 From: Neil Vaytet Date: Mon, 3 Mar 2025 15:15:40 +0100 Subject: [PATCH 2/2] limit warning suppression to amor tests --- pyproject.toml | 1 - tests/amor/pipeline_test.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 178014c7..3eca93ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,7 +75,6 @@ filterwarnings = [ 'ignore:\n.*Sentinel is not a public part of the traitlets API.*:DeprecationWarning', "ignore:.*metadata to be logged in the data array, it is necessary to install the orsopy package.:UserWarning", "ignore:.*A transformation needs a vector attribute. Falling back to returning underlying value.:UserWarning", - "ignore:Invalid transformation.*'vector':UserWarning", ] [tool.ruff] diff --git a/tests/amor/pipeline_test.py b/tests/amor/pipeline_test.py index ceaaa594..87faacf9 100644 --- a/tests/amor/pipeline_test.py +++ b/tests/amor/pipeline_test.py @@ -28,6 +28,11 @@ ) from ess.reflectometry.workflow import with_filenames +# The files used in the AMOR reduction workflow have some scippnexus warnings +pytestmark = pytest.mark.filterwarnings( + "ignore:.*Invalid transformation, .*missing attribute 'vector':UserWarning", +) + @pytest.fixture def amor_pipeline() -> sciline.Pipeline: