Classes
FileStack (filetype, path, *args, **kwargs) |
A file object that offers a continuous view of a stack of subclasses of FileType instances. |
nbodykit.io.stack.
FileStack
(filetype, path, *args, **kwargs)[source]¶A file object that offers a continuous view of a stack of subclasses of
FileType
instances.
This allows data to be accessed across multiple files from a single file object. The “stack” is a concatenation of one file to the end of the previous file.
Parameters: |
|
---|
Attributes
attrs |
Dictionary of meta-data for the stack |
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. |
nfiles |
The number of files in the FileStack |
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, |
attrs
¶Dictionary of meta-data for the stack
nfiles
¶The number of files in the FileStack