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 intofunc. Alternatively a(callable, data_keyword)tuple wheredata_keywordis a string indicating the keyword ofcallablethat 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
pipewhen chaining together functions that expect aNDDataset.