Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-migas committed Feb 17, 2025
1 parent 70745dd commit a196fec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/koyo/click.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ def parse_extra_args(extra_args: tuple[str, ...] | None) -> dict[str, ty.Any]:
continue
name, value = parse_arg(arg, "")
if name in kwargs:
if name in kwargs and not isinstance(kwargs[name], list):
kwargs[name] = [kwargs[name]]
if isinstance(kwargs[name], list):
kwargs[name].append(value)
elif isinstance(kwargs[name], (str, int, float, bool)):
Expand Down
9 changes: 9 additions & 0 deletions src/koyo/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,15 @@ def fix_style(style: str) -> str:
return style


def shorten_style(style: str) -> str:
"""Shorten style name."""
style = style.replace("seaborn-v0_8-", "s-") # seaborn style is too long
style = style.replace("seaborn-", "s-")
style = style.replace("seaborn", "s")
style = style.replace("dark_background", "dark")
return style


def _override_seaborn_heatmap_annotations():
from seaborn.matrix import _HeatMapper

Expand Down

0 comments on commit a196fec

Please sign in to comment.