Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
added unit test
parent
f7ece267
dev
main
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
README.md
csst_proto/flip_image.py
+1
-1
csst_proto/flip_image.py
with
2 additions
and
2 deletions
+2
-2
README.md
+
1
-
1
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
...
...
This diff is collapsed.
Click to expand it.
csst_proto/flip_image.py
+
1
-
1
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
)
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets