Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
c6ba10cd
Commit
c6ba10cd
authored
Oct 15, 2018
by
juga
Browse files
Stop comparing min_num results with ">", it's ">="
and do not use classmethod for it, since it is only a comparison
parent
3d9f5ad0
Changes
1
Show whitespace changes
Inline
Side-by-side
sbws/lib/v3bwfile.py
View file @
c6ba10cd
...
...
@@ -275,9 +275,9 @@ class V3BWLine(object):
kwargs
.
update
(
cls
.
result_types_from_results
(
results
))
# useful args for scaling
if
success_results
:
min_num_
success_results
=
cls
.
min_num_results
(
success_results
,
min_num
)
if
not
min_num_success_results
:
if
not
len
(
success_results
)
>=
min_num
:
log
.
debug
(
'There are no results with relays that have at least'
'{} results.'
.
format
(
min_num
))
return
None
results_away
=
\
cls
.
results_away_each_other
(
min_num_success_results
,
secs_away
)
...
...
Write
Preview
Supports
Markdown
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