Compare commits

..

No commits in common. "10b3abc1d8c527ab312fdc7e7c64f72b18369215" and "ac73381dddd8aa237cdc09ed8916b9c9ec1489d3" have entirely different histories.

View File

@ -356,7 +356,7 @@ def spike_times(stim):
return spikes, stim_dur, dt # se changed spike_times to spikes so its not the same as name of function return spikes, stim_dur, dt # se changed spike_times to spikes so its not the same as name of function
def valid_integrals(integral, local_mean, point, threshold = 0.5): def valid_integrals(integral, local_mean, threshold, point):
""" """
Check if the integral exceeds the threshold compared to the local mean and Check if the integral exceeds the threshold compared to the local mean and
provide feedback on whether the given point is valid or not. provide feedback on whether the given point is valid or not.
@ -379,7 +379,7 @@ def valid_integrals(integral, local_mean, point, threshold = 0.5):
message : str message : str
A message stating whether the point is valid or not. A message stating whether the point is valid or not.
""" """
valid = integral > (local_mean * (1 + threshold)) valid = integral > (local_mean * threshold)
if valid: if valid:
message = f"The point {point} is valid, as its integral exceeds the threshold." message = f"The point {point} is valid, as its integral exceeds the threshold."
else: else: