Trees | Index | Help |
---|
Module Table :: Class Table |
|
object
--+ |Leaf
--+ |object
--+ | | |Table
--+ | Table
Represents a table in the object tree.
Method Summary | |
---|---|
Return a table row, table slice or table column. | |
Read a range of rows and return an in-memory object. | |
Inherited from Table | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
| |
| |
| |
| |
| |
Get info from a table on disk. | |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from Leaf | |
Useful for dealing with Leaf objects as sequences | |
The string reprsentation choosed for this object is its pathname in the HDF5 object tree. | |
Flush the buffers and close this object on tree | |
Copy this leaf to other location where -- the group where the leaf will be copied. | |
Delete a leaf attribute as a string | |
Save whatever remaining data in buffer | |
Get a leaf attribute as a string | |
Remove a leaf | |
Rename a leaf | |
Set a leaf attribute as a string | |
| |
Given a new Leaf object (fresh or in a HDF5 file), set links and attributes to include it in the object tree. | |
Rename this leaf in the object tree as well as in the HDF5 file. | |
| |
| |
| |
| |
Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value |
Property Summary | |
---|---|
Inherited from Leaf | |
attrs : Attrs of this object | |
title : Title of this object |
Method Details |
---|
__getitem__(self,
key)
|
read(self, start=None, stop=None, step=None, field=None, flavor='numarray', coords=None)Read a range of rows and return an in-memory object. If If If both If If a Example 1Get table row #0: >>> table.read(0) array( [(1, (0.5, 1.0), ('a1', 1j))], formats=['Int64', '(2,)Float32', ['a2', 'Complex64']], shape=1, names=['id', 'pos', ('info', ['name', 'value'])]) Example 2Get a range of rows in table: >>> table.read(start=0, stop=table.nrows) array( [(1, (0.5, 1.0), ('a1', 1j)), (2, (0.0, 0.0), ('a2', 1+.1j))], formats=['Int64', '(2,)Float32', ['a2', 'Complex64']], shape=2, names=['id', 'pos', ('info', ['name', 'value'])]) Example 4Get a nested column: >>> table.read(field='info') array( [('a1', 1j), ('a2', 1+.1j)], formats=['a2', 'Complex64'], shape=2, names=['info', ['name', 'value']]) |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Apr 21 13:11:50 2005 | http://epydoc.sf.net |