@@ -739,7 +739,7 @@ def identities(self):
739
739
740
740
return out
741
741
742
- def indices (self , * mode , ** kwargs ):
742
+ def indices (self , * config , ** kwargs ):
743
743
"""Create indices that define a subspace of the domain
744
744
construct.
745
745
@@ -789,7 +789,7 @@ def indices(self, *mode, **kwargs):
789
789
790
790
:Parameters:
791
791
792
- {{mode : optional}}
792
+ {{config : optional}}
793
793
794
794
{{subspace valid modes Domain}}
795
795
@@ -847,7 +847,7 @@ def indices(self, *mode, **kwargs):
847
847
"""
848
848
# Get the indices for every domain axis in the domain, without
849
849
# any auxiliary masks.
850
- domain_indices = self ._indices (mode , None , False , kwargs )
850
+ domain_indices = self ._indices (config , None , False , kwargs )
851
851
852
852
return domain_indices ["indices" ]
853
853
@@ -1094,7 +1094,7 @@ def roll(self, axis, shift, inplace=False):
1094
1094
1095
1095
return d
1096
1096
1097
- def subspace (self , * mode , ** kwargs ):
1097
+ def subspace (self , * config , ** kwargs ):
1098
1098
"""Create a subspace of the field construct.
1099
1099
1100
1100
Creation of a new domain construct which spans a subspace of
@@ -1141,7 +1141,7 @@ def subspace(self, *mode, **kwargs):
1141
1141
1142
1142
:Parameters:
1143
1143
1144
- {{mode : optional}}
1144
+ {{config : optional}}
1145
1145
1146
1146
{{subspace valid modes Domain}}
1147
1147
@@ -1186,19 +1186,19 @@ def subspace(self, *mode, **kwargs):
1186
1186
1187
1187
"""
1188
1188
test = False
1189
- if "test" in mode :
1190
- mode = list (mode )
1191
- mode .remove ("test" )
1189
+ if "test" in config :
1190
+ config = list (config )
1191
+ config .remove ("test" )
1192
1192
test = True
1193
1193
1194
- if not mode and not kwargs :
1194
+ if not config and not kwargs :
1195
1195
if test :
1196
1196
return True
1197
1197
1198
1198
return self .copy ()
1199
1199
1200
1200
try :
1201
- indices = self .indices (* mode , ** kwargs )
1201
+ indices = self .indices (* config , ** kwargs )
1202
1202
except ValueError as error :
1203
1203
if test :
1204
1204
return False
0 commit comments