Skip to content

Commit 07fbc3a

Browse files
committed
Typos and pep8
1 parent 1ad2336 commit 07fbc3a

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

folium/folium.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,9 @@ def geo_json(self, geo_path=None, geo_str=None, data_out='data.json',
824824
keyword argument will enable conversion to GeoJSON.
825825
reset: boolean, default False
826826
Remove all current geoJSON layers, start with new layer
827-
freescale: if True use free format for the scale, where min and max values
828-
are taken from the data. It also allow to plot allow to plot values < 0
829-
and float legend labels.
827+
freescale: if True use free format for the scale, where min and max
828+
values are taken from the data. It also allow to plot
829+
values < 0 and float legend labels.
830830
831831
Output
832832
------
@@ -915,7 +915,7 @@ def json_style(style_cnt, line_color, line_weight, line_opacity,
915915

916916
# D3 Color scale.
917917
series = data[columns[1]]
918-
if freescale == False:
918+
if not freescale:
919919
if threshold_scale and len(threshold_scale) > 6:
920920
raise ValueError
921921
domain = threshold_scale or utilities.split_six(series=series)
@@ -940,18 +940,15 @@ def json_style(style_cnt, line_color, line_weight, line_opacity,
940940

941941
if not freescale:
942942
legend = leg_templ.render({'lin_min': 0,
943-
'lin_max': int(domain[-1]*1.1),
944-
'tick_labels': tick_labels,
945-
'caption': name})
946-
947-
943+
'lin_max': int(domain[-1]*1.1),
944+
'tick_labels': tick_labels,
945+
'caption': name})
948946
else:
949947
legend = leg_templ.render({'lin_min': domain[0],
950948
'lin_max': domain[-1],
951949
'tick_labels': tick_labels,
952950
'caption': name})
953951

954-
955952
self.template_vars.setdefault('map_legends', []).append(legend)
956953

957954
# Style with color brewer colors.

0 commit comments

Comments
 (0)