Skip to content

Commit f21429e

Browse files
author
hatsy
committed
Pep8 changes
1 parent b57a865 commit f21429e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cesium_app/handlers/plot_features.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ class PlotFeaturesHandler(BaseHandler):
77
def get(self, featureset_id):
88
fset = Featureset.get_if_owned(featureset_id, self.get_username())
99
features_to_plot = sorted(fset.features_list)[0:4] # TODO from form
10-
docs_json, render_items = plot.feature_scatterplot(fset.file.uri, features_to_plot)
10+
docs_json, render_items = plot.feature_scatterplot(fset.file.uri,
11+
features_to_plot)
1112
self.success({'docs_json': docs_json, 'render_items': render_items})

cesium_app/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ def feature_scatterplot(fset_path, features_to_plot):
6363

6464
# Convert plot to json objects necessary for rendering with bokeh on the
6565
# frontend
66-
render_items = [{'docid':plot._id, 'elementid':make_id()}]
66+
render_items = [{'docid': plot._id, 'elementid': make_id()}]
6767

6868
doc = Document()
6969
doc.add_root(plot)
7070
docs_json_inner = doc.to_json()
71-
docs_json = {render_items[0]['docid']:docs_json_inner}
71+
docs_json = {render_items[0]['docid']: docs_json_inner}
7272

7373
docs_json = serialize_json(docs_json)
7474
render_items = serialize_json(render_items)

0 commit comments

Comments
 (0)