Skip to content

Commit bfff113

Browse files
committed
cleanup
1 parent 32f656f commit bfff113

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

fastplotlib/graphics/features/_image.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def __init__(
4848
super().__init__(property_name=property_name)
4949

5050
self._colorspace = ColorspacesRGB(colorspace)
51+
self._cpu_buffer = cpu_buffer
5152
data = self._check_data(data, colorspace, cpu_buffer)
5253

5354
self._shape = data.shape
@@ -123,9 +124,6 @@ def __init__(
123124

124125
self.buffer[buffer_index] = texture
125126

126-
self._colorspace = colorspace
127-
self._cpu_buffer = cpu_buffer
128-
129127
@property
130128
def colorspace(
131129
self,

fastplotlib/widgets/nd_widget/_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ def get_window_output(self, indices: dict[str, Any]):
2424
return tuple(a.squeeze() for a in windowed_slice)
2525

2626
# convert to numpy array
27-
return np.asarray(windowed_slice)
27+
return np.asarray(windowed_slice).squeeze()

0 commit comments

Comments
 (0)