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
8c9c54d1
Commit
8c9c54d1
authored
1 year ago
by
BO ZHANG
🏀
Browse files
Options
Download
Email Patches
Plain Diff
set delimiter and dtype for server data
parent
c5cf9ffc
dev
main
Pipeline
#1468
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_flip_image.py
+6
-2
tests/test_flip_image.py
with
6 additions
and
2 deletions
+6
-2
tests/test_flip_image.py
+
6
-
2
View file @
8c9c54d1
...
@@ -24,13 +24,17 @@ class FlipImageTestCase(unittest.TestCase):
...
@@ -24,13 +24,17 @@ class FlipImageTestCase(unittest.TestCase):
os
.
path
.
join
(
os
.
path
.
join
(
os
.
environ
[
"UNIT_TEST_DATA_ROOT"
],
os
.
environ
[
"UNIT_TEST_DATA_ROOT"
],
"csst_proto/test_flip/input/image.txt"
,
"csst_proto/test_flip/input/image.txt"
,
)
),
delimiter
=
","
,
dtype
=
int
,
)
)
image_answer
=
np
.
loadtxt
(
image_answer
=
np
.
loadtxt
(
os
.
path
.
join
(
os
.
path
.
join
(
os
.
environ
[
"UNIT_TEST_DATA_ROOT"
],
os
.
environ
[
"UNIT_TEST_DATA_ROOT"
],
"csst_proto/test_flip/answer/flipped_image.txt"
,
"csst_proto/test_flip/answer/flipped_image.txt"
,
)
),
delimiter
=
","
,
dtype
=
int
,
)
)
self
.
assertIs
(
self
.
assertIs
(
flip_image
(
image_input
),
flip_image
(
image_input
),
...
...
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