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

updated read_test_image

parent ea4748f5
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -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)
+2 −2
Original line number Diff line number Diff line
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"]