Commit 89919a4f authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

added unit test

parent f7ece267
...@@ -30,7 +30,7 @@ A simple example on how to use this package: ...@@ -30,7 +30,7 @@ A simple example on how to use this package:
```python ```python
import numpy as np import numpy as np
from csst_proto import flip_image, print_data from csst_proto.top_level_interface import flip_image, read_test_image
from astropy.io import fits from astropy.io import fits
# read an L0 image # read an L0 image
......
...@@ -30,4 +30,4 @@ def flip_image(img: np.ndarray): ...@@ -30,4 +30,4 @@ def flip_image(img: np.ndarray):
def read_test_image(): def read_test_image():
""" read test image """ """ read test image """
fp_img = PACKAGE_PATH + "/data/test_image.txt" fp_img = PACKAGE_PATH + "/data/test_image.txt"
return np.loadtxt(fp_img) return np.loadtxt(fp_img, dtype=int)
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