GetColumnTensorDisplay returns tensor display parameters for this column either the overall defaults or the per-column if set
(col int)
| 379 | // GetColumnTensorDisplay returns tensor display parameters for this column |
| 380 | // either the overall defaults or the per-column if set |
| 381 | func (tb *Table) GetColumnTensorDisplay(col int) *TensorDisplay { |
| 382 | if ctd, has := tb.ColumnTensorDisplay[col]; has { |
| 383 | return ctd |
| 384 | } |
| 385 | if tb.Table != nil { |
| 386 | cl := tb.Table.Table.Columns[col] |
| 387 | if len(cl.MetaDataMap()) > 0 { |
| 388 | return tb.SetColumnTensorDisplay(col) |
| 389 | } |
| 390 | } |
| 391 | return &tb.TensorDisplay |
| 392 | } |
| 393 | |
| 394 | // SetColumnTensorDisplay sets per-column tensor display params and returns them |
| 395 | // if already set, just returns them |
no test coverage detected