File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -227,14 +227,14 @@ def proc_file(f, opts):
227
227
d = d [np .nonzero (d )]
228
228
if opts .stats :
229
229
# just # of elements
230
- row += ["[%d]" % np .prod (d .shape )]
230
+ row += ["@l [%d]" % np .prod (d .shape )]
231
231
# stats
232
- row += [len (d ) and '[%.2g, %.2g]' % (np .min (d ), np .max (d )) or '-' ]
232
+ row += [len (d ) and '@l [%.2g, %.2g]' % (np .min (d ), np .max (d )) or '-' ]
233
233
if opts .counts :
234
234
counter = Counter ()
235
235
counter .update (d .flatten ())
236
236
# go through each entry and report only non-0 ones
237
- row += [" " .join ("%g:%d" % (i , counter [i ]) for i in sorted (counter ))]
237
+ row += ["@l" + " " .join ("%g:%d" % (i , counter [i ]) for i in sorted (counter ))]
238
238
except Exception as e :
239
239
verbose (2 , "Failed to obtain stats/counts -- %s" % str (e ))
240
240
row += ['error' ]
You can’t perform that action at this time.
0 commit comments