Skip to content

Commit

Permalink
🔖 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pwwang committed Oct 9, 2023
1 parent fd99098 commit 6d9045f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pipen_verbose.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if TYPE_CHECKING: # pragma: no cover
from pipen import Proc

__version__ = "0.8.0"
__version__ = "0.8.1"

logger = get_logger("verbose", "info")

Expand Down Expand Up @@ -85,11 +85,12 @@ def __init__(self) -> None:
def on_proc_input_computed(self, proc: "Proc"):
"""Print input data on debug"""
data_to_show = proc.input.data.copy()
if hasattr(data_to_show, "map"): # pandas 2.1
if hasattr(data_to_show, "map"): # pragma: no cover
# pandas 2.1
data_to_show = data_to_show.map(_shorten_path)
else:
data_to_show = data_to_show.applymap(_shorten_path)

for line in data_to_show.to_string(
show_dimensions=True, index=False
).splitlines():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pipen-verbose"
version = "0.8.0"
version = "0.8.1"
description = "Add verbosal information in logs for pipen."
authors = ["pwwang <pwwang@pwwang.com>"]
license = "MIT"
Expand Down

0 comments on commit 6d9045f

Please sign in to comment.