Skip to content

Commit

Permalink
address Jim's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Dec 18, 2024
1 parent 90f2d6c commit 09e0ae5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/awkward/highlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from awkward._regularize import is_non_string_like_iterable
from awkward._typing import Any, TypeVar
from awkward._util import STDOUT
from awkward.prettyprint import Formatter, bytes_repr, highlevel_array_show_rows
from awkward.prettyprint import Formatter, highlevel_array_show_rows
from awkward.prettyprint import valuestr as prettyprint_valuestr

__all__ = ("Array", "ArrayBuilder", "Record")
Expand Down
8 changes: 4 additions & 4 deletions src/awkward/prettyprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,7 @@ def highlevel_array_show_rows(
rows = []
formatter_impl = Formatter(formatter, precision=precision)

array_line = valuestr(
array, limit_rows, limit_cols, formatter=formatter_impl
)
array_line = valuestr(array, limit_rows, limit_cols, formatter=formatter_impl)
rows.append(array_line)

if type:
Expand All @@ -484,7 +482,9 @@ def highlevel_array_show_rows(
# other info
if named_axis and array.named_axis:
named_axis_line = "named axis: "
named_axis_line += _prettify_named_axes(array.named_axis, delimiter=", ", maxlen=None)
named_axis_line += _prettify_named_axes(
array.named_axis, delimiter=", ", maxlen=None
)
rows.append(named_axis_line)
if nbytes:
nbytes_line = f"nbytes: {bytes_repr(array.nbytes)}"
Expand Down

0 comments on commit 09e0ae5

Please sign in to comment.