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

updated read_test_image

parent ea4748f5
...@@ -26,10 +26,8 @@ def flip_image(img: np.ndarray): ...@@ -26,10 +26,8 @@ def flip_image(img: np.ndarray):
return img[::-1, ::-1] return img[::-1, ::-1]
# a demo on how to package data # a demo on how to read test image
def print_data(): def read_test_image():
""" print out data """ """ read test image """
fp_data = PACKAGE_PATH + "/data/data.csv" fp_img = PACKAGE_PATH + "/data/test_image.txt"
data = table.Table.read(fp_data) return np.loadtxt(fp_img)
print(data)
return
from .flip_image import flip_image, print_data from .flip_image import flip_image, read_test_image
__all__ = ["flip_image", "print_data"] __all__ = ["flip_image", "read_test_image"]
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