File tree 1 file changed +4
-2
lines changed
Filter options
fastplotlib/widgets/image_widget
1 file changed +4
-2
lines changed
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ def current_index(self, index: dict[str, int]):
199
199
return
200
200
201
201
try :
202
- self ._reentrant_block = True # block re-execution until current_index has *fully* completed execution
202
+ self ._reentrant_block = True # block re-execution until current_index has *fully* completed execution
203
203
if not set (index .keys ()).issubset (set (self ._current_index .keys ())):
204
204
raise KeyError (
205
205
f"All dimension keys for setting `current_index` must be present in the widget sliders. "
@@ -210,7 +210,9 @@ def current_index(self, index: dict[str, int]):
210
210
if not isinstance (val , int ):
211
211
raise TypeError ("Indices for all dimensions must be int" )
212
212
if val < 0 :
213
- raise IndexError ("negative indexing is not supported for ImageWidget" )
213
+ raise IndexError (
214
+ "negative indexing is not supported for ImageWidget"
215
+ )
214
216
if val > self ._dims_max_bounds [k ]:
215
217
raise IndexError (
216
218
f"index { val } is out of bounds for dimension '{ k } ' "
You can’t perform that action at this time.
0 commit comments