Skip to content

Commit b2bba15

Browse files
committed
Apply suggestions from CoPilot's review
1 parent cfb57ee commit b2bba15

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/user_guide/quick_start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fig.colorbar(
6666
fraction=0.1,
6767
shrink=0.4,
6868
extend="both",
69-
label="Topography [m a.s.l.]",
69+
label="Bottom Depth [m]",
7070
);
7171
```
7272

mosaic/coastlines.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ def coastlines(
6161
generator = MPASCoastlineGenerator(descriptor)
6262
coastlines = generator.create_coastlines()
6363

64-
geometires = shapely.GeometryCollection(
64+
geometries = shapely.GeometryCollection(
6565
[shapely.LineString(cl) for cl in coastlines]
6666
)
6767

68-
feature = cfeature.ShapelyFeature(geometires, descriptor.projection)
68+
feature = cfeature.ShapelyFeature(geometries, descriptor.projection)
6969
ax.add_feature(feature, **kwargs)
7070

7171

@@ -79,7 +79,7 @@ def __init__(self, descriptor: Descriptor):
7979

8080
shapely.prepare(self.domain)
8181

82-
def create_coastlines(self) -> np.ndarray:
82+
def create_coastlines(self) -> list[np.ndarray]:
8383
graph = self._create_coastline_graph()
8484
lines = self._split_and_order_graph(graph)
8585

tests/test_coastlines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def test_coastlines_are_simple(self, iterate_supported_projections):
103103
generator = MPASCoastlineGenerator(descriptor)
104104
coastlines = generator.create_coastlines()
105105

106-
geometires = shapely.GeometryCollection(
106+
geometries = shapely.GeometryCollection(
107107
[shapely.LineString(cl) for cl in coastlines]
108108
)
109109

110-
assert all(line.is_simple for line in geometires.geoms)
110+
assert all(line.is_simple for line in geometries.geoms)

0 commit comments

Comments
 (0)