1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
5
>The Description class</TITLE
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
10
TITLE="PyTables User's Guide"
11
HREF="index.html"><LINK
13
TITLE="Library Reference"
14
HREF="c1381.html"><LINK
16
TITLE="The Cols class"
17
HREF="x3528.html"><LINK
19
TITLE="The Column class"
20
HREF="x3737.html"></HEAD
31
SUMMARY="Header navigation table"
43
> User's Guide: Hierarchical datasets in Python - Release 1.3.2</TH
59
>Chapter 4. Library Reference</TD
86
NAME="DescriptionClassDescr"
89
>The instances of the <SAMP
90
CLASS="computeroutput"
93
a description of the structure of a table.
96
>An instance of this class is automatically bound to
98
CLASS="computeroutput"
101
HREF="x2981.html#TableClassDescr"
104
objects when they are created. It provides a browseable
105
representation of the structure of the table, made of
107
CLASS="computeroutput"
110
HREF="x4389.html#ColClassDescr"
114
CLASS="computeroutput"
116
>) columns. It also contains
117
information that will allow you to build
119
CLASS="computeroutput"
120
>NestedRecArray</SAMP
122
HREF="a6736.html#NestedRecArrayClassDescr"
125
suited for the different columns in a table (be they nested
129
>Column descriptions (see <SAMP
130
CLASS="computeroutput"
133
HREF="x4389.html#ColClassDescr"
135
>) under a description can be
136
accessed as attributes of it. For instance, if
138
CLASS="computeroutput"
139
>table.description</SAMP
141
CLASS="computeroutput"
144
instance with a column named <SAMP
145
CLASS="computeroutput"
148
later can be accessed as
150
CLASS="computeroutput"
151
>table.description.col1</SAMP
153
CLASS="computeroutput"
156
is nested and contains a <SAMP
157
CLASS="computeroutput"
161
CLASS="computeroutput"
162
>table.description.col1.col2</SAMP
170
NAME="subsection4.8.1"
186
>The name of this description
187
instance. If description is the root of the nested type
188
(or the description of a flat table), its name will be
189
the empty string (<SAMP
190
CLASS="computeroutput"
201
>A list of the names of the
202
columns hanging directly from this description instance.
203
The order of the names matches the order of their
204
respective columns in the containing description.
213
>A list of the pathnames of
214
the columns hanging directly from this description. If
215
the table does not contain nested columns, this is
216
exactly the same as <SAMP
217
CLASS="computeroutput"
228
>A nested list of the
229
names of all the columns hanging directly from this
230
description instance. You can use this for the
232
CLASS="computeroutput"
236
CLASS="computeroutput"
237
>NestedRecArray</SAMP
247
>A nested list of the
248
numarray string formats (and shapes) of all the columns
249
hanging directly from this description instance. You
250
can use this for the <SAMP
251
CLASS="computeroutput"
255
CLASS="computeroutput"
256
>NestedRecArray</SAMP
266
>A nested list of pairs
268
CLASS="computeroutput"
269
>(name, format)</SAMP
271
columns under this table or nested column. You can use
273
CLASS="computeroutput"
277
CLASS="computeroutput"
278
>NestedRecArray</SAMP
288
>A dictionary mapping the names
289
of non-nested columns hanging directly from this
290
description instance to their respective numarray types.
299
>A dictionary mapping the
300
names of non-nested columns hanging directly from this
301
description instance to their respective string types.
310
>A dictionary mapping the
311
names of non-nested columns hanging directly from this
312
description instance to their respective shapes.
321
>A dictionary mapping the names
322
of non-nested columns hanging directly from this
323
description instance to their respective default values.
324
Please, note that all the default values are kept
325
internally as numarray objects.
334
>A dictionary mapping the
335
names of the columns hanging directly from this
336
description instance to their respective descriptions
338
CLASS="computeroutput"
341
HREF="x4389.html#ColClassDescr"
345
CLASS="computeroutput"
348
HREF="x3623.html#DescriptionClassDescr"
359
>A dictionary mapping the
360
names of non-nested columns hanging directly from this
361
description instance to their respective item size (in
372
description in the nested datatype.
383
NAME="subsection4.8.2"
394
>_v_walk(type='All')</B
400
>Iterate over nested columns.</P
406
CLASS="computeroutput"
409
CLASS="computeroutput"
412
all column description objects (<SAMP
413
CLASS="computeroutput"
417
CLASS="computeroutput"
419
> instances) are returned in
420
top-to-bottom order (pre-order).
426
CLASS="computeroutput"
429
CLASS="computeroutput"
433
CLASS="computeroutput"
435
>, only column descriptions
436
of that type are returned.
450
SUMMARY="Footer navigation table"
b'\\ No newline at end of file'