Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
89919a4f
Commit
89919a4f
authored
Aug 23, 2022
by
BO ZHANG
🏀
Browse files
added unit test
parent
f7ece267
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
89919a4f
...
...
@@ -30,7 +30,7 @@ A simple example on how to use this package:
```
python
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
# read an L0 image
...
...
csst_proto/flip_image.py
View file @
89919a4f
...
...
@@ -30,4 +30,4 @@ def flip_image(img: np.ndarray):
def
read_test_image
():
""" read test image """
fp_img
=
PACKAGE_PATH
+
"/data/test_image.txt"
return
np
.
loadtxt
(
fp_img
)
return
np
.
loadtxt
(
fp_img
,
dtype
=
int
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment