Functions
find_datasets (info, attrs, name, obj) |
Recursively add a ColumnInfo named tuple to the info dict |
Classes
ColumnInfo (size, dtype, dset) |
Attributes |
HDFFile (path[, root, exclude]) |
A file object to handle the reading of columns of data from a h5py HDF5 file. |
nbodykit.io.hdf.
ColumnInfo
(size, dtype, dset)¶Attributes
dset |
Alias for field number 2 |
dtype |
Alias for field number 1 |
size |
Alias for field number 0 |
Methods
count (…) |
|
index ((value, [start, …) |
Raises ValueError if the value is not present. |
__getnewargs__
()¶Return self as a plain tuple. Used by copy and pickle.
__new__
(_cls, size, dtype, dset)¶Create new instance of ColumnInfo(size, dtype, dset)
__repr__
()¶Return a nicely formatted representation string
dset
¶Alias for field number 2
dtype
¶Alias for field number 1
size
¶Alias for field number 0
nbodykit.io.hdf.
HDFFile
(path, root='/', exclude=[])[source]¶A file object to handle the reading of columns of data from a h5py
HDF5 file.
See http://docs.h5py.org for documentation on h5py
.
Parameters: |
---|
Attributes
columns |
A list of the names of the columns in the file. |
dtype |
A numpy.dtype object holding the data types of each column in the file. |
ncol |
The number of data columns in the file. |
shape |
The shape of the file, which defaults to (size, ) |
size |
The size of the file, i.e., number of rows |
Methods
asarray () |
Return a view of the file, where the fields of the |
get_dask (column[, blocksize]) |
Return the specified column as a dask array, which |
keys () |
Aliased function to return columns |
read (columns, start, stop[, step]) |
Read the specified column(s) over the given range |