MCPcopy Create free account
hub / github.com/PyTables/PyTables / nested_description

Function nested_description

tables/tests/test_queries.py:121–131  ·  view source on GitHub ↗

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=())

Source from the content-addressed store, hash-verified

119
120
121def 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
134def table_description(classname, nclassname, shape=()):

Callers 1

table_descriptionFunction · 0.85

Calls 1

append_columnsFunction · 0.85

Tested by

no test coverage detected