Skip to content

Commit ec3aa16

Browse files
committed
Square is deprecated.
1 parent f73180e commit ec3aa16

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.coverage

0 Bytes
Binary file not shown.

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
PKG-INFO
2+
SOURCES.txt
3+
dependency_links.txt
4+
requires.txt
5+
top_level.txt
6+

ridge_map/ridge_map.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)