Delete Imaginary

class nmrPype.fn.DI.DeleteImaginary(mp_enable=False, mp_proc=0, mp_threads=0)

Data Function object for deleting imaginary values of NMR data.

Parameters:
  • mp_enable (bool) – Enable multiprocessing

  • mp_proc (int) – Number of processors to utilize for multiprocessing

  • mp_threads (int) – Number of threads to utilize per process

initialize(data: DataFrame)
Initialization follows the following steps:
  • Handle function specific arguments

  • Update any header values before any calculations occur that are independent of the data, such as flags and parameter storage

Parameters:

data (DataFrame) – Target data to manipulate

process(array: ndarray, verb: tuple[int, int, str] = (0, 16, 'H')) ndarray

See nmrPype.fn.function.DataFunction.process() for documentation

run(data: DataFrame) int

See nmrPype.fn.function.DataFunction.run() for documentation

updateHeader(data: DataFrame)

Update the header following the main function’s calculations. Typically this includes header fields that relate to data size.

Parameters:

data (DataFrame) – Target data frame containing header to update