Skip to content

Commit

Permalink
[aggr-] cap runtime when formatting memo status
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef committed May 31, 2024
1 parent 0009867 commit 1988303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion visidata/aggregators.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ def memo_aggregate(col, agg_choices, rows):
for agg in aggs:
aggval = agg.aggregate(col, rows)
typedval = wrapply(agg.type or col.type, aggval)
dispval = col.format(typedval)
# limit width to limit formatting time when typedval is a long list
dispval = col.format(typedval, width=1000)
k = col.name+'_'+agg.name
vd.status(f'{k}={dispval}')
vd.memory[k] = typedval
Expand Down

0 comments on commit 1988303

Please sign in to comment.