nmrglue.fileio.pipe.pipe_3d

class nmrglue.fileio.pipe.pipe_3d(filemask, order=(0, 1, 2), fcheck=False)[source]

Emulate a ndarray objects without loading data into memory for low memory reading of 3D NMRPipe files (multiple file data sets).

  • 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 3D NMRPipe file. Should contain one formatter ‘%’ operator.

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), 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.