-
Notifications
You must be signed in to change notification settings - Fork 7
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
c160d05
commit d6fe0a5
Showing
3 changed files
with
34 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import pytest | ||
from pathlib import Path | ||
from tempfile import mkdtemp | ||
from shutil import rmtree, copy | ||
|
||
from ScanImageTiffReader import ScanImageTiffReader | ||
from roiextractors import ScanImageTiffSinglePlaneImagingExtractor, ScanImageTiffMultiPlaneImagingExtractor | ||
|
||
from .setup_paths import OPHYS_DATA_PATH | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def scan_image_tiff_single_plane_imaging_extractor(): | ||
file_path = OPHYS_DATA_PATH / "imaging_datasets" / "ScanImage" / "scanimage_20220801_volume.tif" | ||
return ScanImageTiffSinglePlaneImagingExtractor(file_path=file_path) | ||
|
||
|
||
def test_get_video(scan_image_tiff_single_plane_imaging_extractor): | ||
video = scan_image_tiff_single_plane_imaging_extractor.get_video() | ||
assert video.shape == (1, 512, 512) |