MCPcopy Create free account
hub / github.com/PyTTaMaster/PyTTa / split

Function split

pytta/functions.py:177–206  ·  view source on GitHub ↗

Split the provided SignalObjs' channels into several SignalObjs. If the 'channels' input argument is given, split the specified channel numbers of each SignalObj, otherwise split all channels. Arguments (default), (type): ----------------------------- * non-k

(*signalObjects,
          channels: list = None)

Source from the content-addressed store, hash-verified

175
176
177def split(*signalObjects,
178 channels: list = None) -> list:
179 """
180 Split the provided SignalObjs' channels into several SignalObjs.
181
182 If the 'channels' input argument is given, split the specified channel numbers of
183 each SignalObj, otherwise split all channels.
184
185 Arguments (default), (type):
186 -----------------------------
187
188 * non-keyword arguments (), (SignalObj)
189
190 * channels (None), (list):
191 specified channels to split from the provided SignalObjs;
192
193 Return (type):
194 --------------
195
196 * spltdChs (list):
197 a list containing SignalObjs for each split channel;
198
199 """
200 spltdChs = []
201
202 for sigObj in signalObjects:
203 moreSpltdChs = sigObj.split(channels=channels)
204 spltdChs.extend(moreSpltdChs)
205
206 return spltdChs
207
208
209def fft_convolve(signal1, signal2):

Callers

nothing calls this directly

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected