Skip to content

Commit c9b53bd

Browse files
committed
silence sphinx warnings
1 parent b74f80c commit c9b53bd

File tree

8 files changed

+20
-8
lines changed

8 files changed

+20
-8
lines changed

xarray/backends/api.py

+2
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,7 @@ def open_mfdataset(
761761
'no_conflicts', 'override'}, optional
762762
String indicating how to compare variables of the same name for
763763
potential conflicts when merging:
764+
764765
* 'broadcast_equals': all values must be equal when variables are
765766
broadcast against each other to ensure common dimensions.
766767
* 'equals': all values and dimensions must be the same.
@@ -770,6 +771,7 @@ def open_mfdataset(
770771
must be equal. The returned dataset then contains the combination
771772
of all non-null values.
772773
* 'override': skip comparing and pick variable from first dataset
774+
773775
preprocess : callable, optional
774776
If provided, call this function on each dataset prior to concatenation.
775777
You can find the file-name from which each dataset was loaded in

xarray/core/alignment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def align(
108108
109109
Returns
110110
-------
111-
aligned : same as *objects
111+
aligned : same as `*objects`
112112
Tuple of objects with aligned coordinates.
113113
114114
Raises

xarray/core/combine.py

+2
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ def combine_by_coords(
531531
* 'all': All data variables will be concatenated.
532532
* list of str: The listed data variables will be concatenated, in
533533
addition to the 'minimal' data variables.
534+
534535
If objects are DataArrays, `data_vars` must be 'all'.
535536
coords : {'minimal', 'different', 'all' or list of str}, optional
536537
As per the 'data_vars' kwarg, but for coordinate variables.
@@ -747,6 +748,7 @@ def auto_combine(
747748
'no_conflicts', 'override'}, optional
748749
String indicating how to compare variables of the same name for
749750
potential conflicts:
751+
750752
- 'broadcast_equals': all values must be equal when variables are
751753
broadcast against each other to ensure common dimensions.
752754
- 'equals': all values and dimensions must be the same.

xarray/core/common.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def assign_coords(self, coords=None, **coords_kwargs):
463463
def assign_attrs(self, *args, **kwargs):
464464
"""Assign new attrs to this object.
465465
466-
Returns a new object equivalent to self.attrs.update(*args, **kwargs).
466+
Returns a new object equivalent to ``self.attrs.update(*args, **kwargs)``.
467467
468468
Parameters
469469
----------
@@ -490,7 +490,7 @@ def pipe(
490490
**kwargs,
491491
) -> T:
492492
"""
493-
Apply func(self, *args, **kwargs)
493+
Apply ``func(self, *args, **kwargs)``
494494
495495
This method replicates the pandas method of the same name.
496496
@@ -819,6 +819,7 @@ def rolling_exp(
819819
----------
820820
window : A single mapping from a dimension name to window value,
821821
optional
822+
822823
dim : str
823824
Name of the dimension to create the rolling exponential window
824825
along (e.g., `time`).
@@ -857,6 +858,7 @@ def coarsen(
857858
----------
858859
dim: dict, optional
859860
Mapping from the dimension name to the window size.
861+
860862
dim : str
861863
Name of the dimension to create the rolling iterator
862864
along (e.g., `time`).
@@ -867,7 +869,7 @@ def coarsen(
867869
multiple of the window size. If 'trim', the excess entries are
868870
dropped. If 'pad', NA will be padded.
869871
side : 'left' or 'right' or mapping from dimension to 'left' or 'right'
870-
coord_func: function (name) that is applied to the coordintes,
872+
coord_func : function (name) that is applied to the coordintes,
871873
or a mapping from coordinate name to function (name).
872874
873875
Returns

xarray/core/concat.py

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def concat(
4545
* 'all': All data variables will be concatenated.
4646
* list of str: The listed data variables will be concatenated, in
4747
addition to the 'minimal' data variables.
48+
4849
If objects are DataArrays, data_vars must be 'all'.
4950
coords : {'minimal', 'different', 'all' or list of str}, optional
5051
These coordinate variables will be concatenated together:

xarray/core/dataarray.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2916,7 +2916,7 @@ def quantile(
29162916
is a scalar. If multiple percentiles are given, first axis of
29172917
the result corresponds to the quantile and a quantile dimension
29182918
is added to the return array. The other dimensions are the
2919-
dimensions that remain after the reduction of the array.
2919+
dimensions that remain after the reduction of the array.
29202920
29212921
See Also
29222922
--------

xarray/core/dataset.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,7 @@ def thin(
21082108
indexers: Union[Mapping[Hashable, int], int] = None,
21092109
**indexers_kwargs: Any,
21102110
) -> "Dataset":
2111-
"""Returns a new dataset with each array indexed along every `n`th
2111+
"""Returns a new dataset with each array indexed along every `n`-th
21122112
value for the specified dimension(s)
21132113
21142114
Parameters
@@ -3467,6 +3467,7 @@ def merge(
34673467
'no_conflicts'}, optional
34683468
String indicating how to compare variables of the same name for
34693469
potential conflicts:
3470+
34703471
- 'broadcast_equals': all values must be equal when variables are
34713472
broadcast against each other to ensure common dimensions.
34723473
- 'equals': all values and dimensions must be the same.
@@ -3475,6 +3476,7 @@ def merge(
34753476
- 'no_conflicts': only values which are not null in both datasets
34763477
must be equal. The returned dataset then contains the combination
34773478
of all non-null values.
3479+
34783480
join : {'outer', 'inner', 'left', 'right', 'exact'}, optional
34793481
Method for joining ``self`` and ``other`` along shared dimensions:
34803482
@@ -3615,7 +3617,7 @@ def drop_sel(self, labels=None, *, errors="raise", **labels_kwargs):
36153617
in the dataset. If 'ignore', any given labels that are in the
36163618
dataset are dropped and no error is raised.
36173619
**labels_kwargs : {dim: label, ...}, optional
3618-
The keyword arguments form of ``dim`` and ``labels`
3620+
The keyword arguments form of ``dim`` and ``labels``
36193621
36203622
Returns
36213623
-------
@@ -3907,6 +3909,7 @@ def interpolate_na(
39073909
method : {'linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic',
39083910
'polynomial', 'barycentric', 'krog', 'pchip',
39093911
'spline'}, optional
3912+
39103913
String indicating which method to use for interpolation:
39113914
39123915
- 'linear': linear interpolation (Default). Additional keyword
@@ -5218,7 +5221,7 @@ def integrate(self, coord, datetime_unit=None):
52185221
datetime_unit
52195222
Can be specify the unit if datetime coordinate is used. One of
52205223
{'Y', 'M', 'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns', 'ps', 'fs',
5221-
'as'}
5224+
'as'}
52225225
52235226
Returns
52245227
-------

xarray/core/groupby.py

+2
Original file line numberDiff line numberDiff line change
@@ -677,11 +677,13 @@ def map(self, func, shortcut=False, args=(), **kwargs):
677677
Callable to apply to each array.
678678
shortcut : bool, optional
679679
Whether or not to shortcut evaluation under the assumptions that:
680+
680681
(1) The action of `func` does not depend on any of the array
681682
metadata (attributes or coordinates) but only on the data and
682683
dimensions.
683684
(2) The action of `func` creates arrays with homogeneous metadata,
684685
that is, with the same dimensions and attributes.
686+
685687
If these conditions are satisfied `shortcut` provides significant
686688
speedup. This should be the case for many common groupby operations
687689
(e.g., applying numpy ufuncs).

0 commit comments

Comments
 (0)