Skip to content

Commit 5b386cf

Browse files
authored
Merge pull request #431 from QuLogic/doc-warnings
DOC: Fix several warnings during the build
2 parents 37b4218 + 6eb9fae commit 5b386cf

File tree

8 files changed

+27
-27
lines changed

8 files changed

+27
-27
lines changed

libpysal/cg/alpha_shapes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,8 @@ def construct_bounding_circles(alpha_shape, radius):
649649
"""Construct the bounding circles for an alpha shape, given the radius
650650
computed from the `alpha_shape_auto` method.
651651
652-
Arguments
653-
---------
652+
Parameters
653+
----------
654654
alpha_shape : shapely.Polygon
655655
An alpha-hull with the input radius.
656656

libpysal/cg/ops/_accessors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def get_attr(df, geom_col="geometry", inplace=False, attr=None):
2727
_doc_template = """
2828
Tabular accessor to grab a geometric object's {n} attribute.
2929
30-
Arguments
31-
---------
30+
Parameters
31+
----------
3232
df : pandas.DataFrame
3333
A pandas.Dataframe with a geometry column.
3434
geom_col : str

libpysal/cg/ops/_shapely.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def _atomic_op(df, geom_col="geometry", inplace=False, _func=None, **kwargs):
5656
_doc_template = """
5757
Tabular version of pysal.contrib.shapely_ext.{n}
5858
59-
Arguments
60-
---------
59+
Parameters
60+
----------
6161
df : pandas.DataFrame
6262
A pandas dataframe with a geometry column.
6363
geom_col : str

libpysal/weights/_contW_lists.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class ContiguityWeightsLists:
4545

4646
def __init__(self, collection, wttype=1):
4747
"""
48-
Arguments
49-
=========
48+
Parameters
49+
----------
5050
5151
collection: PySAL PolygonCollection
5252

libpysal/weights/contiguity.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ def from_xarray(
232232
Notes
233233
-----
234234
1. Lower order contiguities are also selected.
235-
2. Returned object contains `index` attribute that includes a
236-
`Pandas.MultiIndex` object from the DataArray.
235+
2. Returned object contains `index` attribute that includes a
236+
`Pandas.MultiIndex` object from the DataArray.
237237
238238
See Also
239239
--------
@@ -462,8 +462,8 @@ def from_xarray(
462462
Notes
463463
-----
464464
1. Lower order contiguities are also selected.
465-
2. Returned object contains `index` attribute that includes a
466-
`Pandas.MultiIndex` object from the DataArray.
465+
2. Returned object contains `index` attribute that includes a
466+
`Pandas.MultiIndex` object from the DataArray.
467467
468468
See Also
469469
--------
@@ -533,8 +533,8 @@ def _from_dataframe(df, **kwargs):
533533
If the input dataframe is of any other geometry type than "Point",
534534
a value error is raised.
535535
536-
Arguments
537-
---------
536+
Parameters
537+
----------
538538
df : pandas.DataFrame
539539
dataframe containing point geometries for a
540540
voronoi diagram.
@@ -564,7 +564,7 @@ def _build(polygons, criterion="rook", ids=None):
564564
This is a developer-facing function to construct a spatial weights object.
565565
566566
Parameters
567-
---------
567+
----------
568568
polygons : list
569569
list of pysal polygons to use to build contiguity
570570
criterion : string

libpysal/weights/raster.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def da2W(
7474
-----
7575
1. Lower order contiguities are also selected.
7676
2. Returned object contains `index` attribute that includes a
77-
`Pandas.MultiIndex` object from the DataArray.
77+
`Pandas.MultiIndex` object from the DataArray.
7878
7979
Examples
8080
--------
@@ -175,7 +175,7 @@ def da2WSP(
175175
-----
176176
1. Lower order contiguities are also selected.
177177
2. Returned object contains `index` attribute that includes a
178-
`Pandas.MultiIndex` object from the DataArray.
178+
`Pandas.MultiIndex` object from the DataArray.
179179
180180
Examples
181181
--------
@@ -307,7 +307,7 @@ def w2da(data, w, attrs={}, coords=None):
307307
Creates xarray.DataArray object from passed data aligned with W object.
308308
309309
Parameters
310-
---------
310+
----------
311311
data : array/list/pd.Series
312312
1d array-like data with dimensionality conforming to w
313313
w : libpysal.weights.W
@@ -350,7 +350,7 @@ def wsp2da(data, wsp, attrs={}, coords=None):
350350
Creates xarray.DataArray object from passed data aligned with WSP object.
351351
352352
Parameters
353-
---------
353+
----------
354354
data : array/list/pd.Series
355355
1d array-like data with dimensionality conforming to wsp
356356
wsp : libpysal.weights.WSP
@@ -393,7 +393,7 @@ def testDataArray(shape=(3, 4, 4), time=False, rand=False, missing_vals=True):
393393
Creates 2 or 3 dimensional test xarray.DataArray object
394394
395395
Parameters
396-
---------
396+
----------
397397
shape : tuple
398398
Tuple containing shape of the DataArray aligned with
399399
following dimension = (lat, lon) or (layer, lat, lon)
@@ -515,7 +515,7 @@ def _index2da(data, index, attrs, coords):
515515
Creates xarray.DataArray object from passed data
516516
517517
Parameters
518-
---------
518+
----------
519519
data : array/list/pd.Series
520520
1d array-like data with dimensionality conforming to index
521521
index : pd.MultiIndex

libpysal/weights/spatial_lag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ def _resolve_ties(idx, normalized_labels, tally, neighbors, method, w):
194194
an attempt to break the tie, but if it fails, a random tiebreaker will be
195195
selected.
196196
197-
Arguments
198-
---------
197+
Parameters
198+
----------
199199
idx : int
200200
index (aligned with `normalized_labels`) of the
201201
current observation being resolved.

libpysal/weights/weights.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ def to_file(self, path="", format=None):
182182
183183
See libpysal.io.FileIO for more information.
184184
185-
Arguments
186-
---------
185+
Parameters
186+
----------
187187
path : string
188188
location to save the file
189189
format : string
@@ -203,8 +203,8 @@ def from_file(cls, path="", format=None):
203203
"""
204204
Read a weights file into a W object.
205205
206-
Arguments
207-
---------
206+
Parameters
207+
----------
208208
path : string
209209
location to save the file
210210
format : string

0 commit comments

Comments
 (0)