-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from JesseMckinzie/featurize_pytests_v2
Add pytests for featurize_directory and featurize_files
- Loading branch information
Showing
12 changed files
with
100 additions
and
7 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
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,20 @@ | ||
import numpy as np | ||
from bfio import BioReader | ||
from pathlib import Path | ||
|
||
path = str(Path(__file__).parent.resolve()) | ||
|
||
with BioReader(path + '/data/int/p0_y1_r1_c0.ome.tif') as br: | ||
int_p0_y1_r1_c0 = br.read() | ||
|
||
with BioReader(path + '/data/int/p0_y1_r1_c1.ome.tif') as br: | ||
int_p0_y1_r1_c1 = br.read() | ||
|
||
with BioReader(path + '/data/seg/p0_y1_r1_c0.ome.tif') as br: | ||
seg_p0_y1_r1_c0 = br.read() | ||
|
||
with BioReader(path + '/data/seg/p0_y1_r1_c1.ome.tif') as br: | ||
seg_p0_y1_r1_c1 = br.read() | ||
|
||
tissuenet_int = np.array([int_p0_y1_r1_c0, int_p0_y1_r1_c1]) | ||
tissuenet_seg = np.array([seg_p0_y1_r1_c0, seg_p0_y1_r1_c1]) |