Skip to content

Commit

Permalink
feat(utils): log array data type with shape
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <[email protected]>
  • Loading branch information
cameronraysmith committed Aug 14, 2024
1 parent 47e5222 commit eb769b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyrovelocity/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def pretty_log_dict(d: dict) -> str:
# key_colored = colored(key, "green")
key_colored = key
if isinstance(value, ArrayLike):
value_colored = f"{value.shape}"
value_colored = f"{value.shape} {value.dtype}"
else:
value_lines = str(value).split("\n")
value_colored = "\n".join(
Expand Down

0 comments on commit eb769b5

Please sign in to comment.