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.