File: homogenous_storage.rst

package info (click to toggle)
pytables 3.10.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,228 kB
  • sloc: ansic: 82,212; python: 65,296; cpp: 753; sh: 394; makefile: 100
file content (125 lines) | stat: -rw-r--r-- 2,449 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
.. currentmodule:: tables

Homogenous storage classes
==========================

.. _ArrayClassDescr:

The Array class
---------------
.. autoclass:: Array


Array instance variables
~~~~~~~~~~~~~~~~~~~~~~~~
.. attribute:: Array.atom

    An Atom (see :ref:`AtomClassDescr`) instance representing the *type*
    and *shape* of the atomic objects to be saved.

.. autoattribute:: Array.rowsize

.. attribute:: Array.nrow

    On iterators, this is the index of the current row.

.. autoattribute:: Array.nrows


Array methods
~~~~~~~~~~~~~
.. automethod:: Array.get_enum

.. automethod:: Array.iterrows

.. automethod:: Array.__next__

.. automethod:: Array.read


Array special methods
~~~~~~~~~~~~~~~~~~~~~
The following methods automatically trigger actions when an :class:`Array`
instance is accessed in a special way (e.g. ``array[2:3,...,::2]`` will be
equivalent to a call to
``array.__getitem__((slice(2, 3, None), Ellipsis, slice(None, None, 2))))``.

.. automethod:: Array.__getitem__

.. automethod:: Array.__iter__

.. automethod:: Array.__setitem__


.. _CArrayClassDescr:

The CArray class
----------------
.. autoclass:: CArray


.. _EArrayClassDescr:

The EArray class
----------------
.. autoclass:: EArray


.. _EArrayMethodsDescr:

EArray methods
~~~~~~~~~~~~~~

.. automethod:: EArray.append


.. _VLArrayClassDescr:

The VLArray class
-----------------
.. autoclass:: VLArray

..  These are defined in the class docstring
    VLArray instance variables
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    .. autoattribute:: VLArray.atom
    .. autoattribute:: VLArray.flavor
    .. autoattribute:: VLArray.nrow
    .. autoattribute:: VLArray.nrows
    .. autoattribute:: VLArray.extdim
    .. autoattribute:: VLArray.nrows


VLArray properties
~~~~~~~~~~~~~~~~~~
.. autoattribute:: VLArray.size_on_disk

.. autoattribute:: VLArray.size_in_memory


VLArray methods
~~~~~~~~~~~~~~~
.. automethod:: VLArray.append

.. automethod:: VLArray.get_enum

.. automethod:: VLArray.iterrows

.. automethod:: VLArray.__next__

.. automethod:: VLArray.read

.. automethod:: VLArray.get_row_size


VLArray special methods
~~~~~~~~~~~~~~~~~~~~~~~
The following methods automatically trigger actions when a :class:`VLArray`
instance is accessed in a special way (e.g., vlarray[2:5] will be equivalent
to a call to vlarray.__getitem__(slice(2, 5, None)).

.. automethod:: VLArray.__getitem__

.. automethod:: VLArray.__iter__

.. automethod:: VLArray.__setitem__