insert_blink_artifacts#
- pypillometry.signal.insert_blink_artifacts(sy, artifacts, places, mode='additive', missing_value=nan)[source]#
Put artifacts of blinks into a signal.
- Parameters:
sy (np.ndarray) – the (clean) signal
artifacts (list of np.ndarray) – artifacts, see
extract_blink_artifacts()places (np.ndarray) – int array (n x 2): the first sample and the index of the artifact for each place, see
place_blink_artifacts()mode (str) –
"additive"(default) or"multiplicative": how the artifacts were extractedmissing_value (float) – value of the missing samples of the artifacts (default NaN)
- Return type:
- Returns:
copy of sy with the artifacts