Skip to content

Commit 5b039e6

Browse files
authored
Fix warnings from Sphinx (#492)
1 parent 390c5c4 commit 5b039e6

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

libpysal/weights/contiguity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Rook(W):
3838
optional arguments for :class:`pysal.weights.W`
3939
4040
See Also
41-
---------
41+
--------
4242
:class:`libpysal.weights.weights.W`
4343
"""
4444

libpysal/weights/distance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def from_shapefile(cls, filepath, idVariable=None, **kwargs):
580580
Kernel Weights Object
581581
582582
See Also
583-
---------
583+
--------
584584
:class:`libpysal.weights.weights.W`
585585
"""
586586
points = get_points_array_from_shapefile(filepath)
@@ -860,7 +860,7 @@ def from_shapefile(cls, filepath, threshold, idVariable=None, **kwargs):
860860
name of column in shapefile's DBF to use for ids
861861
862862
Returns
863-
--------
863+
-------
864864
Kernel Weights Object
865865
866866
"""

libpysal/weights/gabriel.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class Delaunay(W):
2323
a graph from the input set of points. Will be slower without numba,
2424
and will warn if this is missing.
2525
26-
Arguments
27-
---------
26+
Parameters
27+
----------
2828
coordinates : array of points, (N,2)
2929
numpy array of coordinates containing locations to compute the
3030
delaunay triangulation
@@ -79,8 +79,8 @@ def from_dataframe(cls, df, **kwargs):
7979
Polygons or lines must be converted to points (e.g. using
8080
df.geometry.centroid).
8181
82-
Arguments
83-
---------
82+
Parameters
83+
----------
8484
df : geopandas.GeoDataFrame
8585
GeoDataFrame containing points to construct the Delaunay
8686
Triangulation.
@@ -114,13 +114,14 @@ class Gabriel(Delaunay):
114114
115115
For a link (i,j) connecting node i to j in the Delaunay triangulation
116116
to be retained in the Gabriel graph, it must pass a point set exclusion test:
117+
117118
1. Construct the circle C_ij containing link (i,j) as its diameter
118119
2. If any other node k is contained within C_ij, then remove link (i,j)
119120
from the graph.
120121
3. Once all links are evaluated, the remaining graph is the Gabriel graph.
121122
122-
Arguments
123-
---------
123+
Parameters
124+
----------
124125
coordinates : array of points, (N,2)
125126
numpy array of coordinates containing locations to compute the
126127
delaunay triangulation
@@ -159,8 +160,8 @@ class Relative_Neighborhood(Delaunay):
159160
This means that the points are at least as close to one another
160161
as they are to any other point.
161162
162-
Arguments
163-
---------
163+
Parameters
164+
----------
164165
coordinates : array of points, (N,2)
165166
numpy array of coordinates containing locations to compute the
166167
delaunay triangulation

libpysal/weights/spintW.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def vecW(
211211
212212
213213
Returns
214-
------
214+
-------
215215
W : DistanceBand W object that uses 4-dimenional distances between
216216
vectors origin and destination coordinates.
217217

0 commit comments

Comments
 (0)