MCPcopy Create free account
hub / github.com/cogentcore/core / UpdateSliceSize

Method UpdateSliceSize

tensor/tensorcore/table.go:179–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177}
178
179func (tb *Table) UpdateSliceSize() int {
180 tb.Table.DeleteInvalid() // table could have changed
181 if tb.Table.Len() == 0 {
182 tb.Table.Sequential()
183 }
184 tb.SliceSize = tb.Table.Len()
185 tb.NCols = tb.Table.Table.NumColumns()
186 return tb.SliceSize
187}
188
189func (tb *Table) UpdateMaxWidths() {
190 if len(tb.headerWidths) != tb.NCols {

Callers

nothing calls this directly

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls 4

DeleteInvalidMethod · 0.80
SequentialMethod · 0.80
LenMethod · 0.65
NumColumnsMethod · 0.65

Tested by

no test coverage detected