@@ -498,8 +498,8 @@ def _doc_agg_method(func, by=False, long_name='', action_verb='perform', extra_a
498
498
499
499
doc_args = "" .join (_arg_agg [arg ] for arg in extra_args )
500
500
doc_kwargs = "" .join (_kwarg_agg [kw ]['doc' ] for kw in kwargs )
501
- doc_varargs = r """
502
- *axes_and_groups : None or int or str or Axis or Group or any combination of those
501
+ doc_varargs = """
502
+ \ *axes_and_groups : None or int or str or Axis or Group or any combination of those
503
503
{specific}
504
504
The default (no axis or group) is to {action_verb} the {long_name} over all the dimensions of the input
505
505
array.
@@ -7048,7 +7048,7 @@ def combine_axes(self, axes=None, sep='_', wildcard=False):
7048
7048
return transposed .reshape (new_axes )
7049
7049
7050
7050
def split_axes (self , axes = None , sep = '_' , names = None , regex = None , sort = False , fill_value = nan ):
7051
- """Split axes and returns a new array
7051
+ r """Split axes and returns a new array
7052
7052
7053
7053
Parameters
7054
7054
----------
@@ -7079,15 +7079,15 @@ def split_axes(self, axes=None, sep='_', names=None, regex=None, sort=False, fil
7079
7079
--------
7080
7080
>>> arr = ndtest((2, 3))
7081
7081
>>> arr
7082
- a\\ b b0 b1 b2
7082
+ a\b b0 b1 b2
7083
7083
a0 0 1 2
7084
7084
a1 3 4 5
7085
7085
>>> combined = arr.combine_axes()
7086
7086
>>> combined
7087
7087
a_b a0_b0 a0_b1 a0_b2 a1_b0 a1_b1 a1_b2
7088
7088
0 1 2 3 4 5
7089
7089
>>> combined.split_axes()
7090
- a\\ b b0 b1 b2
7090
+ a\b b0 b1 b2
7091
7091
a0 0 1 2
7092
7092
a1 3 4 5
7093
7093
@@ -7097,23 +7097,23 @@ def split_axes(self, axes=None, sep='_', names=None, regex=None, sort=False, fil
7097
7097
>>> combined
7098
7098
a_b a0b0 a0b1 a0b2 a1b0 a1b1 a1b2
7099
7099
0 1 2 3 4 5
7100
- >>> combined.split_axes('a_b', regex=r'(\\ w{2})(\ \ w{2})')
7101
- a\\ b b0 b1 b2
7100
+ >>> combined.split_axes('a_b', regex=r'(\w{2})(\w{2})')
7101
+ a\b b0 b1 b2
7102
7102
a0 0 1 2
7103
7103
a1 3 4 5
7104
7104
7105
7105
Split several axes at once
7106
7106
7107
7107
>>> combined = ndtest('a_b=a0_b0..a1_b1; c_d=c0_d0..c1_d1')
7108
7108
>>> combined
7109
- a_b\\ c_d c0_d0 c0_d1 c1_d0 c1_d1
7109
+ a_b\c_d c0_d0 c0_d1 c1_d0 c1_d1
7110
7110
a0_b0 0 1 2 3
7111
7111
a0_b1 4 5 6 7
7112
7112
a1_b0 8 9 10 11
7113
7113
a1_b1 12 13 14 15
7114
7114
>>> # equivalent to combined.split_axes() which split all axes whose name contains the `sep` delimiter.
7115
7115
>>> combined.split_axes(['a_b', 'c_d'])
7116
- a b c\\ d d0 d1
7116
+ a b c\d d0 d1
7117
7117
a0 b0 c0 0 1
7118
7118
a0 b0 c1 2 3
7119
7119
a0 b1 c0 4 5
@@ -7123,7 +7123,7 @@ def split_axes(self, axes=None, sep='_', names=None, regex=None, sort=False, fil
7123
7123
a1 b1 c0 12 13
7124
7124
a1 b1 c1 14 15
7125
7125
>>> combined.split_axes({'a_b': ('A', 'B'), 'c_d': ('C', 'D')})
7126
- A B C\\ D d0 d1
7126
+ A B C\D d0 d1
7127
7127
a0 b0 c0 0 1
7128
7128
a0 b0 c1 2 3
7129
7129
a0 b1 c0 4 5
0 commit comments