spectrochempy.pipe๏ƒ

pipe(func, *args, **kwargs)[source]๏ƒ

Apply func(self, *args, **kwargs).

Parameters:
  • func (function) โ€“ Function to apply to the NDDataset. *args, and **kwargs are passed into func. Alternatively a (callable, data_keyword) tuple where data_keyword is a string indicating the keyword of callable that expects the array object.

  • *args โ€“ Positional arguments passed into func.

  • **kwargs โ€“ Keyword arguments passed into func.

Returns:

pipe โ€“ The return type of func.

Notes

Use pipe when chaining together functions that expect a NDDataset.