From 956251f7ee595b0be88844040c79d4208a8b185d Mon Sep 17 00:00:00 2001 From: Luke Campagnola Date: Tue, 23 Aug 2016 09:22:33 -0700 Subject: [PATCH] enabled transposed ROI tests; not passing yet --- pyqtgraph/graphicsItems/tests/test_ImageItem.py | 4 ++-- pyqtgraph/graphicsItems/tests/test_ROI.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyqtgraph/graphicsItems/tests/test_ImageItem.py b/pyqtgraph/graphicsItems/tests/test_ImageItem.py index b88d185a..e247abe3 100644 --- a/pyqtgraph/graphicsItems/tests/test_ImageItem.py +++ b/pyqtgraph/graphicsItems/tests/test_ImageItem.py @@ -103,11 +103,11 @@ def test_ImageItem(transpose=False): img.setAutoDownsample(True) assertImageApproved(w, 'imageitem/resolution_with_downsampling_x', 'Resolution test with downsampling axross x axis.') - assert img._lastDownsample == (5, 1) + assert img._lastDownsample == (4, 1) img.setImage(data.T, levels=[-1, 1]) assertImageApproved(w, 'imageitem/resolution_with_downsampling_y', 'Resolution test with downsampling across y axis.') - assert img._lastDownsample == (1, 5) + assert img._lastDownsample == (1, 4) view.hide() diff --git a/pyqtgraph/graphicsItems/tests/test_ROI.py b/pyqtgraph/graphicsItems/tests/test_ROI.py index cfc03575..2837119d 100644 --- a/pyqtgraph/graphicsItems/tests/test_ROI.py +++ b/pyqtgraph/graphicsItems/tests/test_ROI.py @@ -25,8 +25,8 @@ def test_getArrayRegion(): try: pg.setConfigOptions(imageAxisOrder='col-major') check_getArrayRegion(roi, 'roi/'+name, testResize) - #pg.setConfigOptions(imageAxisOrder='row-major') - #check_getArrayRegion(roi, 'roi/'+name, testResize, transpose=True) + pg.setConfigOptions(imageAxisOrder='row-major') + check_getArrayRegion(roi, 'roi/'+name, testResize, transpose=True) finally: pg.setConfigOptions(imageAxisOrder=origMode)