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)
| 175 | |
| 176 | |
| 177 | def 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 | |
| 209 | def fft_convolve(signal1, signal2): |