SetColumnTensorDisplay sets per-column tensor display params and returns them if already set, just returns them
(col int)
| 394 | // SetColumnTensorDisplay sets per-column tensor display params and returns them |
| 395 | // if already set, just returns them |
| 396 | func (tb *Table) SetColumnTensorDisplay(col int) *TensorDisplay { |
| 397 | if ctd, has := tb.ColumnTensorDisplay[col]; has { |
| 398 | return ctd |
| 399 | } |
| 400 | ctd := &TensorDisplay{} |
| 401 | *ctd = tb.TensorDisplay |
| 402 | if tb.Table != nil { |
| 403 | cl := tb.Table.Table.Columns[col] |
| 404 | ctd.FromMeta(cl) |
| 405 | } |
| 406 | tb.ColumnTensorDisplay[col] = ctd |
| 407 | return ctd |
| 408 | } |
| 409 | |
| 410 | // NewAt inserts a new blank element at given index in the slice -- -1 |
| 411 | // means the end |
no test coverage detected