Maximum threshold should still be allowed (e.g. 1 hour)

This commit is contained in:
Daniel Schick 2024-05-02 10:43:09 +02:00
parent 3b01dbb7aa
commit 76bf4f01bd

View File

@ -163,7 +163,7 @@ class ValidationRuleBaseFunctions():
time_absolute_differences = [[abs(time_.to_pydatetime()-time__.to_pydatetime()).total_seconds() for j_, time__ in enumerate(estimated_times) if j_ != i_] for i_, time_ in enumerate(estimated_times)]
# list of lists: for each element in the list, create a boolean that indicates, whether the threshold is exceeded
time_difference_exceeds_threshold = [[time__ >= threshold for time__ in time_] for time_ in time_absolute_differences]
time_difference_exceeds_threshold = [[time__ > threshold for time__ in time_] for time_ in time_absolute_differences]
# list of booleans for each time entry separately
time_difference_exceeds_threshold = [any(time_) for time_ in time_difference_exceeds_threshold]