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_keyword
is a string indicating the keyword ofcallable
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 aNDDataset
.