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 :

filemask : str

Filename of 4D NMRPipe file with one or two formatter (%) operators.

order : tuple

Ordering of axes against file.

fcheck : bool, 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.

Previous topic

nmrglue.fileio.pipe.pipestream_3d

Next topic

nmrglue.fileio.pipe.pipestream_4d

This Page