updated valid integral in useful functions
This commit is contained in:
parent
10b3abc1d8
commit
ac9ced6bcc
@ -376,15 +376,13 @@ def valid_integrals(integral, local_mean, point, threshold = 0.5):
|
|||||||
-------
|
-------
|
||||||
valid : bool
|
valid : bool
|
||||||
True if the integral exceeds the local mean by the threshold, otherwise False.
|
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))
|
valid = integral > (local_mean * (1 + threshold))
|
||||||
if valid:
|
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:
|
else:
|
||||||
message = f"The point {point} is not valid, as its integral does not exceed the threshold."
|
print(f"The point {point} is not valid, as its integral does not exceed the threshold.")
|
||||||
return valid, message
|
return valid
|
||||||
|
|
||||||
'''TODO Sarah: AM-freq plot:
|
'''TODO Sarah: AM-freq plot:
|
||||||
meaning of am peak in spectrum? why is it there how does it change with stim intensity?
|
meaning of am peak in spectrum? why is it there how does it change with stim intensity?
|
||||||
|
Loading…
Reference in New Issue
Block a user