@@ -49,8 +49,7 @@ def unique_variable(name, variables, compat='broadcast_equals'):
49
49
variables : list of xarray.Variable
50
50
List of Variable objects, all of which go by the same name in different
51
51
inputs.
52
- compat : {'identical', 'equals', 'broadcast_equals',
53
- 'no_conflicts'}, optional
52
+ compat : {'identical', 'equals', 'broadcast_equals', 'no_conflicts'}, optional
54
53
Type of equality check to use.
55
54
56
55
Returns
@@ -60,7 +59,7 @@ def unique_variable(name, variables, compat='broadcast_equals'):
60
59
Raises
61
60
------
62
61
MergeError: if any of the variables are not equal.
63
- """
62
+ """ # noqa
64
63
out = variables [0 ]
65
64
if len (variables ) > 1 :
66
65
combine_method = None
@@ -122,16 +121,15 @@ def merge_variables(
122
121
priority_vars : mapping with Variable or None values, optional
123
122
If provided, variables are always taken from this dict in preference to
124
123
the input variable dictionaries, without checking for conflicts.
125
- compat : {'identical', 'equals', 'broadcast_equals',
126
- 'minimal', 'no_conflicts'}, optional
124
+ compat : {'identical', 'equals', 'broadcast_equals', 'minimal', 'no_conflicts'}, optional
127
125
Type of equality check to use when checking for conflicts.
128
126
129
127
Returns
130
128
-------
131
129
OrderedDict with keys taken by the union of keys on list_of_variable_dicts,
132
130
and Variable values corresponding to those that should be found on the
133
131
merged result.
134
- """
132
+ """ # noqa
135
133
if priority_vars is None :
136
134
priority_vars = {}
137
135
@@ -313,15 +311,14 @@ def _get_priority_vars(objects, priority_arg, compat='equals'):
313
311
Dictionaries in which to find the priority variables.
314
312
priority_arg : int or None
315
313
Integer object whose variable should take priority.
316
- compat : {'identical', 'equals', 'broadcast_equals',
317
- 'no_conflicts'}, optional
314
+ compat : {'identical', 'equals', 'broadcast_equals', 'no_conflicts'}, optional
318
315
Compatibility checks to use when merging variables.
319
316
320
317
Returns
321
318
-------
322
319
None, if priority_arg is None, or an OrderedDict with Variable objects as
323
320
values indicating priority variables.
324
- """
321
+ """ # noqa
325
322
if priority_arg is None :
326
323
priority_vars = {}
327
324
else :
@@ -406,8 +403,7 @@ def merge_core(objs,
406
403
----------
407
404
objs : list of mappings
408
405
All values must be convertable to labeled arrays.
409
- compat : {'identical', 'equals', 'broadcast_equals',
410
- 'no_conflicts'}, optional
406
+ compat : {'identical', 'equals', 'broadcast_equals', 'no_conflicts'}, optional
411
407
Compatibility checks to use when merging variables.
412
408
join : {'outer', 'inner', 'left', 'right'}, optional
413
409
How to combine objects with different indexes.
@@ -430,7 +426,7 @@ def merge_core(objs,
430
426
Raises
431
427
------
432
428
MergeError if the merge cannot be done successfully.
433
- """
429
+ """ # noqa
434
430
from .dataset import calculate_dimensions
435
431
436
432
_assert_compat_valid (compat )
@@ -472,8 +468,7 @@ def merge(objects, compat='no_conflicts', join='outer'):
472
468
objects : Iterable[Union[xarray.Dataset, xarray.DataArray, dict]]
473
469
Merge together all variables from these objects. If any of them are
474
470
DataArray objects, they must have a name.
475
- compat : {'identical', 'equals', 'broadcast_equals',
476
- 'no_conflicts'}, optional
471
+ compat : {'identical', 'equals', 'broadcast_equals', 'no_conflicts'}, optional
477
472
String indicating how to compare variables of the same name for
478
473
potential conflicts:
479
474
@@ -516,7 +511,7 @@ def merge(objects, compat='no_conflicts', join='outer'):
516
511
See also
517
512
--------
518
513
concat
519
- """
514
+ """ # noqa
520
515
from .dataarray import DataArray
521
516
from .dataset import Dataset
522
517
0 commit comments