Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 31, 2025
1 parent 0425917 commit 0fc500e
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions tiatoolbox/visualization/bokeh_app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,9 @@ def create_channel_color_ui() -> Column:

color_picker = ColorPicker(title="Channel Color", width=100)

def update_selected_color( # noqa: ARG001 # skipcq: PYL-W0613
attr: str,
old: str,
new: str
) -> None:
def update_selected_color( # skipcq: PYL-W0613
attr: str, old: str, new: str
) -> None:
"""Update the selected color in multichannel ui."""
selected = color_source.selected.indices
if selected:
Expand All @@ -247,10 +245,9 @@ def apply_changes() -> None:

apply_button.on_click(apply_changes)

def update_color_picker( # noqa: ARG001 # skipcq: PYL-W0613
attr: str,
old: str,
new: str) -> None:
def update_color_picker( # skipcq: PYL-W0613
attr: str, old: str, new: str
) -> None:
"""Update the color picker when a new channel is selected."""
if new:
selected_color = color_source.data["colors"][new[0]]
Expand All @@ -269,10 +266,9 @@ def update_color_picker( # noqa: ARG001 # skipcq: PYL-W0613
width=200,
)

def enhance_cb( # noqa: ARG001 # skipcq: PYL-W0613
attr: str,
old: str,
new: str) -> None:
def enhance_cb( # skipcq: PYL-W0613
attr: str, old: str, new: str
) -> None:
"""Enhance slider callback."""
UI["s"].put(
f"http://{host2}:5000/tileserver/enhance",
Expand Down

0 comments on commit 0fc500e

Please sign in to comment.