Skip to content

Commit

Permalink
fix: prettyprint
Browse files Browse the repository at this point in the history
  • Loading branch information
ianna committed Aug 19, 2024
1 parent f64aa2a commit d91a53d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ragged/_spec_array_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ def __str__(self) -> str:
if len(self._shape) == 0:
return f"{self._impl}"
elif len(self._shape) == 1:
return f"{ak._prettyprint.valuestr(self._impl, 1, 80)}"
return f"{ak.prettyprint.valuestr(self._impl, 1, 80)}"
else:
prep = ak._prettyprint.valuestr(self._impl, 20, 80 - 4)[1:-1].replace(
prep = ak.prettyprint.valuestr(self._impl, 20, 80 - 4)[1:-1].replace(
"\n ", "\n "
)
return f"[\n {prep}\n]"
Expand All @@ -259,9 +259,9 @@ def __repr__(self) -> str:
if len(self._shape) == 0:
return f"ragged.array({self._impl})"
elif len(self._shape) == 1:
return f"ragged.array({ak._prettyprint.valuestr(self._impl, 1, 80 - 14)})"
return f"ragged.array({ak.prettyprint.valuestr(self._impl, 1, 80 - 14)})"
else:
prep = ak._prettyprint.valuestr(self._impl, 20, 80 - 4)[1:-1].replace(
prep = ak.prettyprint.valuestr(self._impl, 20, 80 - 4)[1:-1].replace(
"\n ", "\n "
)
return f"ragged.array([\n {prep}\n])"
Expand Down

0 comments on commit d91a53d

Please sign in to comment.