File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
tiatoolbox/visualization/bokeh_app Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -221,11 +221,9 @@ def create_channel_color_ui() -> Column:
221221
222222 color_picker = ColorPicker (title = "Channel Color" , width = 100 )
223223
224- def update_selected_color ( # noqa: ARG001 # skipcq: PYL-W0613
225- attr : str ,
226- old : str ,
227- new : str
228- ) -> None :
224+ def update_selected_color ( # noqa: ARG001 # skipcq: PYL-W0613
225+ attr : str , old : str , new : str
226+ ) -> None :
229227 """Update the selected color in multichannel ui."""
230228 selected = color_source .selected .indices
231229 if selected :
@@ -248,9 +246,8 @@ def apply_changes() -> None:
248246 apply_button .on_click (apply_changes )
249247
250248 def update_color_picker ( # noqa: ARG001 # skipcq: PYL-W0613
251- attr : str ,
252- old : str ,
253- new : str ) -> None :
249+ attr : str , old : str , new : str
250+ ) -> None :
254251 """Update the color picker when a new channel is selected."""
255252 if new :
256253 selected_color = color_source .data ["colors" ][new [0 ]]
@@ -270,9 +267,8 @@ def update_color_picker( # noqa: ARG001 # skipcq: PYL-W0613
270267 )
271268
272269 def enhance_cb ( # noqa: ARG001 # skipcq: PYL-W0613
273- attr : str ,
274- old : str ,
275- new : str ) -> None :
270+ attr : str , old : str , new : str
271+ ) -> None :
276272 """Enhance slider callback."""
277273 UI ["s" ].put (
278274 f"http://{ host2 } :5000/tileserver/enhance" ,
You can’t perform that action at this time.
0 commit comments