A different instrument must keep only signals at or above a threshold and mark weak ones.
Here “weak” means strictly below threshold; a value equal to the threshold stays unchanged. The supplied .copy() keeps the input array safe. Add your mask assignment to cleaned before the existing return line. Try a threshold equal to one of the sample values to check that boundary.
cleaned using the supplied threshold and assign -1 to every weak signal.Edit main.py and press Run to inspect the cleaned signals. Submit checks another threshold and confirms that the original array stays unchanged.
Select with cleaned[cleaned < threshold] on the left side of =.