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
f7ece267
Commit
f7ece267
authored
Aug 23, 2022
by
BO ZHANG
🏀
Browse files
updated read_test_image
parent
ea4748f5
Changes
2
Show whitespace changes
Inline
Side-by-side
csst_proto/flip_image.py
View file @
f7ece267
...
@@ -26,10 +26,8 @@ def flip_image(img: np.ndarray):
...
@@ -26,10 +26,8 @@ def flip_image(img: np.ndarray):
return
img
[::
-
1
,
::
-
1
]
return
img
[::
-
1
,
::
-
1
]
# a demo on how to package data
# a demo on how to read test image
def
print_data
():
def
read_test_image
():
""" print out data """
""" read test image """
fp_data
=
PACKAGE_PATH
+
"/data/data.csv"
fp_img
=
PACKAGE_PATH
+
"/data/test_image.txt"
data
=
table
.
Table
.
read
(
fp_data
)
return
np
.
loadtxt
(
fp_img
)
print
(
data
)
return
csst_proto/top_level_interface.py
View file @
f7ece267
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
"
]
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