Skip to content

Commit

Permalink
refactored to take plane and channel at __init__ rather than in get_v…
Browse files Browse the repository at this point in the history
…ideo -- added channel_names
  • Loading branch information
pauladkisson committed Sep 18, 2023
1 parent e84b6ad commit 243c168
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def __init__(
self._num_channels = num_channels
self.plane = plane
self._num_planes = num_planes
self._channel_names = channel_names
if channel >= num_channels:
raise ValueError(f"Channel index ({channel}) exceeds number of channels ({num_channels}).")
if plane >= num_planes:
Expand Down

0 comments on commit 243c168

Please sign in to comment.