nmrglue.process.pipe_proc.mac

nmrglue.process.pipe_proc.mac(dic, data, macro=None, noRd=False, noWr=False, all=False, **kwargs)[source]

Dispatcher similar to the MAC command.

Parameters
dicdict

Dictionary of NMRPipe parameters

datandarray

Array of NMR data.

macrocallable

Python function to apply.

kwargskeyword arguments

Keyword arguments that get passed to the macro

Returns
ndicdict

Dictionary of updated NMRPipe parameters.

ndatandarray

Array of data with macro function applied.

Notes

This is not intended to be a true macro interpreter. Instead, the purpose is to act as a dispatch mechanism to other Python code so that the look and feel of nmrPipe is maintained. The -var and -str parameters are not used, as they can be passed directly to the macro as keyword arguements.