Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
781b7d27
Commit
781b7d27
authored
Sep 25, 2019
by
Samuel GAIST
Browse files
[test][prefix][algorithms] Ensure max is bigger than threshold in db input loop evaluator
This makes the validate part more coherent.
parent
05b2b084
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/test/prefix/algorithms/user/db_input_loop_evaluator/1.py
View file @
781b7d27
...
...
@@ -56,6 +56,9 @@ class Algorithm:
value
=
data
[
"in_loop"
].
value
self
.
max
+=
value
if
abs
(
self
.
max
-
self
.
threshold
)
<=
1
:
self
.
max
=
self
.
threshold
+
2
return
True
def
validate
(
self
,
result
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment