From 745f7b73e6bafeae7303675436680e5e7f211fef Mon Sep 17 00:00:00 2001 From: gnzng Date: Mon, 7 Jul 2025 13:55:54 -0700 Subject: [PATCH] Fix background calculation in test_Ptycho2DDataset_downsample --- tests/test_datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_datasets.py b/tests/test_datasets.py index 8b1d827..4d17f0b 100644 --- a/tests/test_datasets.py +++ b/tests/test_datasets.py @@ -396,7 +396,7 @@ def test_Ptycho2DDataset_downsample(test_ptycho_cxis): if dataset.background is not None: assert t.allclose( copied_dataset.background, - dataset.background[::2, 1::2] + dataset.background[1::2, 1::2] + dataset.background[::2, ::2] + dataset.background[1::2, ::2] + dataset.background[::2, 1::2] + dataset.background[1::2, 1::2] ) # And then we just test the shape for a few factors, and check that