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