Commit c5cf9ffc authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

use np.loadtxt

parent 08f044d4
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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",