From c5cf9ffcf24fa05e8f9172cc25e43b7e9aa4f88f Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Fri, 3 Nov 2023 10:43:47 +0800 Subject: [PATCH] use np.loadtxt --- tests/test_flip_image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_flip_image.py b/tests/test_flip_image.py index c4d2cb4..7d7ca5c 100644 --- a/tests/test_flip_image.py +++ b/tests/test_flip_image.py @@ -20,13 +20,13 @@ class FlipImageTestCase(unittest.TestCase): def test_flip_image_on_server(self): """test flip image on server""" - image_input = np.load( + image_input = np.loadtxt( os.path.join( os.environ["UNIT_TEST_DATA_ROOT"], "csst_proto/test_flip/input/image.txt", ) ) - image_answer = np.load( + image_answer = np.loadtxt( os.path.join( os.environ["UNIT_TEST_DATA_ROOT"], "csst_proto/test_flip/answer/flipped_image.txt", -- GitLab