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_keywordis a string indicating the keyword of- callablethat 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 a- NDDataset.