nmrglue.fileio.pipe.pipe_4d
- class nmrglue.fileio.pipe.pipe_4d(filemask, order=(0, 1, 2, 3), fcheck=False)[source]
Emulate a ndarray objects without loading data into memory for low memory reading of single/two index 4D NMRPipe data files.
slicing operations return ndarray objects.
can iterate over with expected results.
transpose and swapaxes methods create a new objects with correct axes ordering.
has ndim, shape, and dtype attributes.
- Parameters
- filemaskstr
Filename of 4D NMRPipe file with one or two formatter (%) operators.
- ordertuple
Ordering of axes against file.
- fcheckbool, optional.
True to perform a basic check to see if all files expected for the data set exist. Raises a IOError if files are missing. Default is False.
- __init__(filemask, order=(0, 1, 2, 3), fcheck=False)[source]
Create and set up object, check that files exist if fcheck is True
Methods
__init__
(filemask[, order, fcheck])Create and set up object, check that files exist if fcheck is True
swapaxes
(axis1, axis2)Return object with axis1 and axis2 interchanged.
transpose
(*axes)Return object with axes transposed.