~ubuntu-branches/ubuntu/natty/pytables/natty-updates

« back to all changes in this revision

Viewing changes to doc/html/x3623.html

  • Committer: Bazaar Package Importer
  • Author(s): Alexandre Fayolle
  • Date: 2006-06-28 10:45:03 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20060628104503-cc251q5o5j3e2k10
  * Fixed call to pyversions in debian/rules which failed on recent versions 
    of pyversions
  * Fixed clean rule in debian/rules which left the stamp files behind
  * Acknowledge NMU
  * Added Alexandre Fayolle to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
 
2
<HTML
 
3
><HEAD
 
4
><TITLE
 
5
>The Description class</TITLE
 
6
><META
 
7
NAME="GENERATOR"
 
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
 
9
REL="HOME"
 
10
TITLE="PyTables User's Guide"
 
11
HREF="index.html"><LINK
 
12
REL="UP"
 
13
TITLE="Library Reference"
 
14
HREF="c1381.html"><LINK
 
15
REL="PREVIOUS"
 
16
TITLE="The Cols class"
 
17
HREF="x3528.html"><LINK
 
18
REL="NEXT"
 
19
TITLE="The Column class"
 
20
HREF="x3737.html"></HEAD
 
21
><BODY
 
22
CLASS="sect1"
 
23
BGCOLOR="#FFFFFF"
 
24
TEXT="#000000"
 
25
LINK="#0000FF"
 
26
VLINK="#840084"
 
27
ALINK="#0000FF"
 
28
><DIV
 
29
CLASS="NAVHEADER"
 
30
><TABLE
 
31
SUMMARY="Header navigation table"
 
32
WIDTH="100%"
 
33
BORDER="0"
 
34
CELLPADDING="0"
 
35
CELLSPACING="0"
 
36
><TR
 
37
><TH
 
38
COLSPAN="3"
 
39
ALIGN="center"
 
40
><SPAN
 
41
CLASS="markup"
 
42
>PyTables</SPAN
 
43
> User's Guide: Hierarchical datasets in Python - Release 1.3.2</TH
 
44
></TR
 
45
><TR
 
46
><TD
 
47
WIDTH="10%"
 
48
ALIGN="left"
 
49
VALIGN="bottom"
 
50
><A
 
51
HREF="x3528.html"
 
52
ACCESSKEY="P"
 
53
>Prev</A
 
54
></TD
 
55
><TD
 
56
WIDTH="80%"
 
57
ALIGN="center"
 
58
VALIGN="bottom"
 
59
>Chapter 4. Library Reference</TD
 
60
><TD
 
61
WIDTH="10%"
 
62
ALIGN="right"
 
63
VALIGN="bottom"
 
64
><A
 
65
HREF="x3737.html"
 
66
ACCESSKEY="N"
 
67
>Next</A
 
68
></TD
 
69
></TR
 
70
></TABLE
 
71
><HR
 
72
ALIGN="LEFT"
 
73
WIDTH="100%"></DIV
 
74
><DIV
 
75
CLASS="sect1"
 
76
><H1
 
77
CLASS="sect1"
 
78
><A
 
79
NAME="section4.8"
 
80
>4.8. The <SPAN
 
81
CLASS="markup"
 
82
>Description</SPAN
 
83
> class</A
 
84
></H1
 
85
><A
 
86
NAME="DescriptionClassDescr"
 
87
></A
 
88
><P
 
89
>The instances of the <SAMP
 
90
CLASS="computeroutput"
 
91
>Description</SAMP
 
92
> class provide
 
93
            a description of the structure of a table.
 
94
          </P
 
95
><P
 
96
>An instance of this class is automatically bound to
 
97
            <SAMP
 
98
CLASS="computeroutput"
 
99
>Table</SAMP
 
100
> (see <A
 
101
HREF="x2981.html#TableClassDescr"
 
102
>4.6</A
 
103
>)
 
104
            objects when they are created.  It provides a browseable
 
105
            representation of the structure of the table, made of
 
106
            non-nested (<SAMP
 
107
CLASS="computeroutput"
 
108
>Col</SAMP
 
109
> &#8212;see <A
 
110
HREF="x4389.html#ColClassDescr"
 
111
>4.16.2</A
 
112
>) and nested
 
113
            (<SAMP
 
114
CLASS="computeroutput"
 
115
>Description</SAMP
 
116
>) columns.  It also contains
 
117
            information that will allow you to build
 
118
            <SAMP
 
119
CLASS="computeroutput"
 
120
>NestedRecArray</SAMP
 
121
> (see <A
 
122
HREF="a6736.html#NestedRecArrayClassDescr"
 
123
>appendix�B</A
 
124
>) objects
 
125
            suited for the different columns in a table (be they nested
 
126
            or not).
 
127
          </P
 
128
><P
 
129
>Column descriptions (see <SAMP
 
130
CLASS="computeroutput"
 
131
>Col</SAMP
 
132
> class in <A
 
133
HREF="x4389.html#ColClassDescr"
 
134
>4.16.2</A
 
135
>) under a description can be
 
136
            accessed as attributes of it.  For instance, if
 
137
            <SAMP
 
138
CLASS="computeroutput"
 
139
>table.description</SAMP
 
140
> is a <SAMP
 
141
CLASS="computeroutput"
 
142
>Description</SAMP
 
143
>
 
144
            instance with a column named <SAMP
 
145
CLASS="computeroutput"
 
146
>col1</SAMP
 
147
> under it, the
 
148
            later can be accessed as
 
149
            <SAMP
 
150
CLASS="computeroutput"
 
151
>table.description.col1</SAMP
 
152
>.  If <SAMP
 
153
CLASS="computeroutput"
 
154
>col1</SAMP
 
155
>
 
156
            is nested and contains a <SAMP
 
157
CLASS="computeroutput"
 
158
>col2</SAMP
 
159
> column, this can
 
160
            be accessed as <SAMP
 
161
CLASS="computeroutput"
 
162
>table.description.col1.col2</SAMP
 
163
>.
 
164
          </P
 
165
><DIV
 
166
CLASS="sect2"
 
167
><H2
 
168
CLASS="sect2"
 
169
><A
 
170
NAME="subsection4.8.1"
 
171
>4.8.1. <SPAN
 
172
CLASS="markup"
 
173
>Description</SPAN
 
174
> instance
 
175
              variables</A
 
176
></H2
 
177
><DIV
 
178
CLASS="glosslist"
 
179
><DL
 
180
><DT
 
181
><B
 
182
>_v_name</B
 
183
></DT
 
184
><DD
 
185
><P
 
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"
 
191
>''</SAMP
 
192
>).
 
193
              </P
 
194
></DD
 
195
><DT
 
196
><B
 
197
>_v_names</B
 
198
></DT
 
199
><DD
 
200
><P
 
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.
 
205
              </P
 
206
></DD
 
207
><DT
 
208
><B
 
209
>_v_pathnames</B
 
210
></DT
 
211
><DD
 
212
><P
 
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"
 
218
>_v_names</SAMP
 
219
> attribute.
 
220
              </P
 
221
></DD
 
222
><DT
 
223
><B
 
224
>_v_nestedNames</B
 
225
></DT
 
226
><DD
 
227
><P
 
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
 
231
                <SAMP
 
232
CLASS="computeroutput"
 
233
>names</SAMP
 
234
> argument of
 
235
                <SAMP
 
236
CLASS="computeroutput"
 
237
>NestedRecArray</SAMP
 
238
> factory functions.
 
239
              </P
 
240
></DD
 
241
><DT
 
242
><B
 
243
>_v_nestedFormats</B
 
244
></DT
 
245
><DD
 
246
><P
 
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"
 
252
>formats</SAMP
 
253
> argument of
 
254
                <SAMP
 
255
CLASS="computeroutput"
 
256
>NestedRecArray</SAMP
 
257
> factory functions.
 
258
              </P
 
259
></DD
 
260
><DT
 
261
><B
 
262
>_v_nestedDescr</B
 
263
></DT
 
264
><DD
 
265
><P
 
266
>A nested list of pairs
 
267
                of <SAMP
 
268
CLASS="computeroutput"
 
269
>(name, format)</SAMP
 
270
> tuples for all the
 
271
                columns under this table or nested column.  You can use
 
272
                this for the <SAMP
 
273
CLASS="computeroutput"
 
274
>descr</SAMP
 
275
> argument of
 
276
                <SAMP
 
277
CLASS="computeroutput"
 
278
>NestedRecArray</SAMP
 
279
> factory functions.
 
280
              </P
 
281
></DD
 
282
><DT
 
283
><B
 
284
>_v_types</B
 
285
></DT
 
286
><DD
 
287
><P
 
288
>A dictionary mapping the names
 
289
                of non-nested columns hanging directly from this
 
290
                description instance to their respective numarray types.
 
291
              </P
 
292
></DD
 
293
><DT
 
294
><B
 
295
>_v_stypes</B
 
296
></DT
 
297
><DD
 
298
><P
 
299
>A dictionary mapping the
 
300
                names of non-nested columns hanging directly from this
 
301
                description instance to their respective string types.
 
302
              </P
 
303
></DD
 
304
><DT
 
305
><B
 
306
>_v_shapes</B
 
307
></DT
 
308
><DD
 
309
><P
 
310
>A dictionary mapping the
 
311
                names of non-nested columns hanging directly from this
 
312
                description instance to their respective shapes.
 
313
              </P
 
314
></DD
 
315
><DT
 
316
><B
 
317
>_v_dflts</B
 
318
></DT
 
319
><DD
 
320
><P
 
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.
 
326
              </P
 
327
></DD
 
328
><DT
 
329
><B
 
330
>_v_colObjects</B
 
331
></DT
 
332
><DD
 
333
><P
 
334
>A dictionary mapping the
 
335
                names of the columns hanging directly from this
 
336
                description instance to their respective descriptions
 
337
                (<SAMP
 
338
CLASS="computeroutput"
 
339
>Col</SAMP
 
340
> &#8212;see <A
 
341
HREF="x4389.html#ColClassDescr"
 
342
>4.16.2</A
 
343
>&#8212; or
 
344
                <SAMP
 
345
CLASS="computeroutput"
 
346
>Description</SAMP
 
347
> &#8212;see <A
 
348
HREF="x3623.html#DescriptionClassDescr"
 
349
>4.8</A
 
350
>&#8212; instances).
 
351
              </P
 
352
></DD
 
353
><DT
 
354
><B
 
355
>_v_itemsizes</B
 
356
></DT
 
357
><DD
 
358
><P
 
359
>A dictionary mapping the
 
360
                names of non-nested columns hanging directly from this
 
361
                description instance to their respective item size (in
 
362
                bytes).
 
363
              </P
 
364
></DD
 
365
><DT
 
366
><B
 
367
>_v_nestedlvl</B
 
368
></DT
 
369
><DD
 
370
><P
 
371
>The level of the
 
372
                description in the nested datatype.
 
373
              </P
 
374
></DD
 
375
></DL
 
376
></DIV
 
377
></DIV
 
378
><DIV
 
379
CLASS="sect2"
 
380
><H2
 
381
CLASS="sect2"
 
382
><A
 
383
NAME="subsection4.8.2"
 
384
>4.8.2. <SPAN
 
385
CLASS="markup"
 
386
>Description</SPAN
 
387
> methods</A
 
388
></H2
 
389
><DIV
 
390
CLASS="glosslist"
 
391
><DL
 
392
><DT
 
393
><B
 
394
>_v_walk(type='All')</B
 
395
></DT
 
396
><DD
 
397
><P
 
398
>&#13;          </P
 
399
><P
 
400
>Iterate over nested columns.</P
 
401
><P
 
402
> </P
 
403
><P
 
404
>If
 
405
                  <SAMP
 
406
CLASS="computeroutput"
 
407
>type</SAMP
 
408
> is <SAMP
 
409
CLASS="computeroutput"
 
410
>'All'</SAMP
 
411
> (the default),
 
412
                  all column description objects (<SAMP
 
413
CLASS="computeroutput"
 
414
>Col</SAMP
 
415
> and
 
416
                  <SAMP
 
417
CLASS="computeroutput"
 
418
>Description</SAMP
 
419
> instances) are returned in
 
420
                  top-to-bottom order (pre-order).
 
421
                </P
 
422
><P
 
423
>&#13;          </P
 
424
><P
 
425
>If <SAMP
 
426
CLASS="computeroutput"
 
427
>type</SAMP
 
428
> is <SAMP
 
429
CLASS="computeroutput"
 
430
>'Col'</SAMP
 
431
> or
 
432
                  <SAMP
 
433
CLASS="computeroutput"
 
434
>'Description'</SAMP
 
435
>, only column descriptions
 
436
                  of that type are returned.
 
437
                </P
 
438
><P
 
439
>&#13;        </P
 
440
></DD
 
441
></DL
 
442
></DIV
 
443
></DIV
 
444
></DIV
 
445
><DIV
 
446
CLASS="NAVFOOTER"
 
447
><HR
 
448
ALIGN="LEFT"
 
449
WIDTH="100%"><TABLE
 
450
SUMMARY="Footer navigation table"
 
451
WIDTH="100%"
 
452
BORDER="0"
 
453
CELLPADDING="0"
 
454
CELLSPACING="0"
 
455
><TR
 
456
><TD
 
457
WIDTH="33%"
 
458
ALIGN="left"
 
459
VALIGN="top"
 
460
><A
 
461
HREF="x3528.html"
 
462
ACCESSKEY="P"
 
463
>Prev</A
 
464
></TD
 
465
><TD
 
466
WIDTH="34%"
 
467
ALIGN="center"
 
468
VALIGN="top"
 
469
><A
 
470
HREF="index.html"
 
471
ACCESSKEY="H"
 
472
>Home</A
 
473
></TD
 
474
><TD
 
475
WIDTH="33%"
 
476
ALIGN="right"
 
477
VALIGN="top"
 
478
><A
 
479
HREF="x3737.html"
 
480
ACCESSKEY="N"
 
481
>Next</A
 
482
></TD
 
483
></TR
 
484
><TR
 
485
><TD
 
486
WIDTH="33%"
 
487
ALIGN="left"
 
488
VALIGN="top"
 
489
>The <SPAN
 
490
CLASS="markup"
 
491
>Cols</SPAN
 
492
> class</TD
 
493
><TD
 
494
WIDTH="34%"
 
495
ALIGN="center"
 
496
VALIGN="top"
 
497
><A
 
498
HREF="c1381.html"
 
499
ACCESSKEY="U"
 
500
>Up</A
 
501
></TD
 
502
><TD
 
503
WIDTH="33%"
 
504
ALIGN="right"
 
505
VALIGN="top"
 
506
>The <SPAN
 
507
CLASS="markup"
 
508
>Column</SPAN
 
509
> class</TD
 
510
></TR
 
511
></TABLE
 
512
></DIV
 
513
></BODY
 
514
></HTML
 
515
>
 
 
b'\\ No newline at end of file'