Return a nested column description with all PyTables data types. A column of a certain TYPE gets called ``c_TYPE``. The nested column will be placed in the position indicated by `pos`.
(classname, pos, shape=())
| 119 | |
| 120 | |
| 121 | def nested_description(classname, pos, shape=()): |
| 122 | """Return a nested column description with all PyTables data types. |
| 123 | |
| 124 | A column of a certain TYPE gets called ``c_TYPE``. The nested |
| 125 | column will be placed in the position indicated by `pos`. |
| 126 | |
| 127 | """ |
| 128 | classdict = {} |
| 129 | append_columns(classdict, shape=shape) |
| 130 | classdict["_v_pos"] = pos |
| 131 | return type(classname, (tb.IsDescription,), classdict) |
| 132 | |
| 133 | |
| 134 | def table_description(classname, nclassname, shape=()): |
no test coverage detected