From ac9ced6bcc6718b4435487978caa51831711a8c9 Mon Sep 17 00:00:00 2001 From: mbergmann Date: Wed, 23 Oct 2024 11:02:42 +0200 Subject: [PATCH] updated valid integral in useful functions --- code/useful_functions.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/code/useful_functions.py b/code/useful_functions.py index d5e3574..f54f8e9 100644 --- a/code/useful_functions.py +++ b/code/useful_functions.py @@ -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?