forked from burke86/deepdisc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bfd388
commit 95a3a85
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import os | ||
import pytest | ||
|
||
from deepdisc.data_format.image_readers import DC2ImageReader, HSCImageReader | ||
|
||
def test_read_hsc_data(hsc_triple_test_file): | ||
"""Test that we can read the test DC2 data.""" | ||
ir = HSCImageReader(norm="raw") | ||
img = ir(hsc_triple_test_file) | ||
assert img.shape[0] == 1050 | ||
assert img.shape[1] == 1025 | ||
assert img.shape[2] == 3 | ||
|
||
|
||
def test_read_dc2_data(dc2_single_test_file): | ||
"""Test that we can read the test DC2 data.""" | ||
ir = DC2ImageReader(norm="raw") | ||
img = ir(dc2_single_test_file) | ||
assert img.shape[0] == 525 | ||
assert img.shape[1] == 525 | ||
assert img.shape[2] == 6 |