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

use np.loadtxt

parent 08f044d4
Pipeline #1467 failed with stage
in 0 seconds
......@@ -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",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment