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 .