File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ def longs(self):
9191 """Bottom and top longitude of bounding box."""
9292 return (self .bbox [0 ], self .bbox [2 ])
9393
94+ # pylint: disable=too-many-arguments,too-many-positional-arguments
9495 def get_elevation_data (
9596 self ,
9697 num_lines = 80 ,
@@ -178,7 +179,7 @@ def preprocess(
178179
179180 is_water = values < np .percentile (values , water_ntile )
180181 is_lake = (
181- rank .gradient (img_as_ubyte (values ), footprint_rectangle (3 , 3 ))
182+ rank .gradient (img_as_ubyte (values ), footprint_rectangle (( 3 , 3 ) ))
182183 < lake_flatness
183184 )
184185
@@ -200,7 +201,7 @@ def plot_annotation(
200201 background = True ,
201202 ax = None ,
202203 ):
203- """Plot an annotation to an existing map
204+ """Plot an annotation to an existing map.
204205
205206 It is recommended to call this function only after calling map_plot()
206207
@@ -231,9 +232,10 @@ def plot_annotation(
231232 """
232233 if ax is None and self .ax is None :
233234 raise ValueError (
234- "No axes found: Either plot_map() beforehand or pass an matplotlib.Axes value through"
235+ "No axes found: Either plot_map() beforehand or pass an matplotlib.Axes value "
236+ "to the function."
235237 )
236- elif ax is None :
238+ if ax is None :
237239 ax = self .ax
238240
239241 highest_zorder = max (text .zorder for text in ax .texts ) if ax .texts else 1
You can’t perform that action at this time.
0 commit comments