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
78706632
Commit
78706632
authored
Sep 13, 2018
by
juga
Browse files
Fix linter errors
parent
09268e4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
sbws/lib/v3bwfile.py
View file @
78706632
...
...
@@ -9,9 +9,8 @@ from statistics import median, mean
from
sbws
import
__version__
from
sbws.globals
import
(
SPEC_VERSION
,
BW_LINE_SIZE
,
SBWS_SCALE_CONSTANT
,
TORFLOW_SCALING
,
SBWS_SCALING
,
TORFLOW_BW_MARGIN
,
TORFLOW_OBS_LAST
,
TORFLOW_OBS_MEAN
,
fail_hard
)
SBWS_SCALING
,
TORFLOW_BW_MARGIN
,
TORFLOW_SCALING
,
TORFLOW_OBS_LAST
,
TORFLOW_OBS_MEAN
)
from
sbws.lib.resultdump
import
ResultSuccess
,
_ResultType
from
sbws.util.filelock
import
DirectoryLock
from
sbws.util.timestamp
import
now_isodt_str
,
unixts_to_isodt_str
...
...
@@ -412,9 +411,9 @@ class V3BWFile(object):
header
=
V3BWHeader
.
from_results
(
results
,
state_fpath
)
bw_lines_raw
=
[]
for
fp
in
results
.
keys
():
l
=
V3BWLine
.
from_results
(
results
[
fp
])
if
l
is
not
None
:
bw_lines_raw
.
append
(
l
)
l
ine
=
V3BWLine
.
from_results
(
results
[
fp
])
if
l
ine
is
not
None
:
bw_lines_raw
.
append
(
l
ine
)
if
not
bw_lines_raw
:
return
cls
(
header
,
[])
if
scaling_method
==
SBWS_SCALING
:
...
...
tests/unit/lib/test_v3bwfile.py
View file @
78706632
...
...
@@ -4,7 +4,7 @@ import json
import
os.path
from
sbws
import
__version__
as
version
from
sbws.globals
import
SPEC_VERSION
,
SBWS_SCALING
,
TORFLOW_SCALING
from
sbws.globals
import
SPEC_VERSION
,
SBWS_SCALING
from
sbws.lib.resultdump
import
Result
,
load_result_file
from
sbws.lib.v3bwfile
import
(
V3BWHeader
,
V3BWLine
,
TERMINATOR
,
LINE_SEP
,
KEYVALUE_SEP_V110
,
num_results_of_type
,
...
...
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