Skip to content

Commit

Permalink
Update: print as shape
Browse files Browse the repository at this point in the history
  • Loading branch information
patham9 committed Feb 14, 2024
1 parent 00e1318 commit 8851623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plotData.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
run_names = ["shock_run", "shock_rand"]
run_names = ["fball_run", "fball_rand"]
files = dict([])
for run_name in run_names:
for i in range(1,10+1):
Expand Down
2 changes: 1 addition & 1 deletion prettyprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _prettyTriplet(triplet):
(y, x, value) = triplet[:3]
if y >= 0: y = " " + str(y)
if x >= 0: x = " " + str(x)
return "[" + str(x) + "," + str(y) + f" ]='{value}'"
return "shape[" + str(x) + "," + str(y) + f" ]='{value}'"

def _prettyaction(action):
return "^" + str(action).split("<function ")[1].split(" at")[0]

0 comments on commit 8851623

Please sign in to comment.