@@ -146,7 +146,7 @@ def get_channel_info() -> dict[str, tuple[int, int, int]]:
146
146
resp = json .loads (resp .text )
147
147
return resp .get ("channels" , {}), resp .get ("active" , [])
148
148
except json .JSONDecodeError as e :
149
- logger .warning (f "Error decoding JSON: { e } " )
149
+ logger .warning ("Error decoding JSON: %s" , e )
150
150
return {}, []
151
151
152
152
@@ -221,7 +221,11 @@ def create_channel_color_ui() -> Column:
221
221
222
222
color_picker = ColorPicker (title = "Channel Color" , width = 100 )
223
223
224
- def update_selected_color (attr : str , old : str , new : str ) -> None : # noqa: ARG001
224
+ def update_selected_color ( # noqa: ARG001 # skipcq: PYL-W0613
225
+ attr : str ,
226
+ old : str ,
227
+ new : str
228
+ ) -> None :
225
229
"""Update the selected color in multichannel ui."""
226
230
selected = color_source .selected .indices
227
231
if selected :
@@ -243,7 +247,10 @@ def apply_changes() -> None:
243
247
244
248
apply_button .on_click (apply_changes )
245
249
246
- def update_color_picker (attr : str , old : str , new : str ) -> None : # noqa: ARG001
250
+ def update_color_picker ( # noqa: ARG001 # skipcq: PYL-W0613
251
+ attr : str ,
252
+ old : str ,
253
+ new : str ) -> None :
247
254
"""Update the color picker when a new channel is selected."""
248
255
if new :
249
256
selected_color = color_source .data ["colors" ][new [0 ]]
@@ -262,7 +269,10 @@ def update_color_picker(attr: str, old: str, new: str) -> None: # noqa: ARG001
262
269
width = 200 ,
263
270
)
264
271
265
- def enhance_cb (attr : str , old : str , new : str ) -> None : # noqa: ARG001 # skipcq: PYL-W0613
272
+ def enhance_cb ( # noqa: ARG001 # skipcq: PYL-W0613
273
+ attr : str ,
274
+ old : str ,
275
+ new : str ) -> None :
266
276
"""Enhance slider callback."""
267
277
UI ["s" ].put (
268
278
f"http://{ host2 } :5000/tileserver/enhance" ,
@@ -929,14 +939,14 @@ def populate_slide_list(slide_folder: Path, search_txt: str | None = None) -> No
929
939
UI ["slide_select" ].options = file_list
930
940
931
941
932
- def filter_input_cb (attr : str , old : str , new : str ) -> None : # noqa: ARG001
942
+ def filter_input_cb (attr : str , old : str , new : str ) -> None : # noqa: ARG001 # skipcq: PYL-W0613
933
943
"""Change predicate to be used to filter annotations."""
934
944
build_predicate ()
935
945
UI ["vstate" ].update_state = 1
936
946
UI ["vstate" ].to_update .update (["overlay" ])
937
947
938
948
939
- def cprop_input_cb (attr : str , old : str , new : list [str ]) -> None : # noqa: ARG001
949
+ def cprop_input_cb (attr : str , old : str , new : list [str ]) -> None : # noqa: ARG001 # skipcq: PYL-W0613
940
950
"""Change property to color by."""
941
951
if len (new ) == 0 :
942
952
return
0 commit comments