updated valid integral in useful functions

This commit is contained in:
mbergmann 2024-10-23 11:02:42 +02:00
parent 10b3abc1d8
commit ac9ced6bcc

View File

@ -376,15 +376,13 @@ def valid_integrals(integral, local_mean, point, threshold = 0.5):
-------
valid : bool
True if the integral exceeds the local mean by the threshold, otherwise False.
message : str
A message stating whether the point is valid or not.
"""
valid = integral > (local_mean * (1 + threshold))
if valid:
message = f"The point {point} is valid, as its integral exceeds the threshold."
print(f"The point {point} is valid, as its integral exceeds the threshold.")
else:
message = f"The point {point} is not valid, as its integral does not exceed the threshold."
return valid, message
print(f"The point {point} is not valid, as its integral does not exceed the threshold.")
return valid
'''TODO Sarah: AM-freq plot:
meaning of am peak in spectrum? why is it there how does it change with stim intensity?