Skip to content

Commit

Permalink
added specific notimplementederror for single-frame case
Browse files Browse the repository at this point in the history
  • Loading branch information
pauladkisson committed Sep 17, 2024
1 parent dbd9c83 commit b0efba2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,12 @@ def __init__(
ScanImageTiffReader = _get_scanimage_reader()
with ScanImageTiffReader(str(self.file_path)) as io:
shape = io.shape() # [frames, rows, columns]
if len(shape) == 3:
if len(shape) == 2: # [rows, columns]
raise NotImplementedError(
"Extractor cannot handle single-frame ScanImageTiff data. Please raise an issue to request this feature: "
"https://github.com/catalystneuro/roiextractors/issues "
)
elif len(shape) == 3:
self._total_num_frames, self._num_rows, self._num_columns = shape
if (
self._num_planes == 1
Expand Down

0 comments on commit b0efba2

Please sign in to comment.