Skip to content

Commit 455cc60

Browse files
committed
style
1 parent 5c2aeb0 commit 455cc60

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

scope_plot/backends/bokeh.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ def generate_bar(bar_spec):
158158
new_df = new_df.set_index(x_field)
159159
df = pd.concat([df, new_df], axis=1, sort=False)
160160

161-
162161
# convert index to a string
163162
df.index = df.index.map(str)
164163
source = ColumnDataSource(data=df)

scope_plot/schema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def require_series_field(plot_spec, field):
146146

147147
SUBPLOTS_FIGURE = Schema(FIGURE_FIELDS).extend(SUBPLOTS_EXTENSIONS)
148148

149+
149150
def validate(orig_spec):
150151
if "subplots" in orig_spec:
151152
return SUBPLOTS_FIGURE(orig_spec)

scope_plot/specification.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from scope_plot.error import NoInputFilesError
77
from scope_plot import schema
88

9+
910
class InputFileNotFoundError(Exception):
1011
"""raise when an input_file cannot be found in include directories"""
1112
def __init__(self, name, search_dirs):
@@ -15,17 +16,21 @@ def __init__(self, name, search_dirs):
1516
def __str__(self):
1617
return "input_file {} not found in any of {}".format(self.name, self.search_dirs)
1718

19+
1820
class InputFileNotDefinedError(Exception):
1921
"""raise when a spec file does not define input_file"""
2022
def __init__(self, series):
2123
self.series = series
2224

25+
2326
class XfieldNotFoundError(Exception):
2427
"""raise when xfield is not defined"""
2528

29+
2630
class YfieldNotFoundError(Exception):
2731
"""raise when yfield is not defined"""
2832

33+
2934
def find(name, search_dirs):
3035
if not os.path.isfile(name):
3136
found = False
@@ -82,6 +87,7 @@ def xfield(self):
8287
return f
8388
return None
8489

90+
8591
class yfield_mixin(object):
8692
def __init__(self, parent, spec):
8793
self.parent = parent
@@ -97,6 +103,7 @@ def yfield(self):
97103
return f
98104
return None
99105

106+
100107
class xscale_mixin(object):
101108
def __init__(self, parent, spec):
102109
self.parent = parent
@@ -111,6 +118,7 @@ def xscale(self):
111118
return f
112119
return 1.0
113120

121+
114122
class yscale_mixin(object):
115123
def __init__(self, parent, spec):
116124
self.parent = parent
@@ -125,6 +133,7 @@ def yscale(self):
125133
return f
126134
return 1.0
127135

136+
128137
class SpecificationBase(object):
129138
""" emulate a dictionary to provide compatibility with most of old implementation"""
130139
def __init__(self, parent, spec):
@@ -150,8 +159,8 @@ def get(self, key, default):
150159
class SeriesSpecification(
151160
input_file_mixin,
152161
SpecificationBase,
153-
regex_mixin,
154-
xfield_mixin,
162+
regex_mixin,
163+
xfield_mixin,
155164
xscale_mixin,
156165
yfield_mixin,
157166
yscale_mixin,
@@ -207,7 +216,7 @@ class PlotSpecification(
207216
xfield_mixin,
208217
xscale_mixin,
209218
yfield_mixin,
210-
yscale_mixin,
219+
yscale_mixin,
211220
):
212221
def __init__(self, parent, spec):
213222
SpecificationBase.__init__(self, parent, spec)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
name='scope_plot',
4444
description='Plot Google Benchmark results',
4545
long_description='\n\n'.join([readme, changes]),
46-
long_description_content_type='text/markdown', # This is important!
46+
long_description_content_type='text/markdown', # This is important!
4747
license=LICENSE,
4848
url='https://github.com/rai-project/scope_plot',
4949
version=VERSION,

0 commit comments

Comments
 (0)