@@ -245,8 +245,7 @@ def __getitem__(self, key: slice | Ellipsis | NBasis) -> Self:
245245 key = (key ,)
246246
247247 type_error_msg = (f'only instances of Basis, slice(None), and Ellipsis are valid indices for the'
248- f'{ type (self ).__name__ } class. '
249- f'Use Array class to index using integers, slices, and integer or boolean arrays' )
248+ f'{ type (self ).__name__ } class.' )
250249 if not isinstance (key , tuple ):
251250 raise TypeError (type_error_msg )
252251 for bas in key :
@@ -323,7 +322,7 @@ def change_basis(self, basis: NBasis) -> Self:
323322 basis: New basis of tensor.
324323
325324 Returns:
326- Tensor in new basis.
325+ Tensor in the new basis.
327326 """
328327 basis = BasisTuple .create_from_default (basis , default = self .basis )
329328 if not basis .is_spanning (self ._basis ):
@@ -340,7 +339,7 @@ def cob(self) -> _ChangeBasisInterface:
340339 return self ._cob
341340
342341 def change_basis_at (self , basis : IBasis | Sequence [IBasis ], axis : int | Sequence [int ]) -> Self :
343- """Change basis of tensor along one or more selected axes.
342+ """Change the basis of tensor along one or more selected axes.
344343
345344 Slice(None) can be used to indicate no transformation.
346345 In contrast to `project`, this function will first test if the tensor can be fully represented in the new basis
@@ -351,7 +350,7 @@ def change_basis_at(self, basis: IBasis | Sequence[IBasis], axis: int | Sequence
351350 axis: One or more axes, along which the basis will be replaced.
352351
353352 Returns:
354- Tensor in new basis.
353+ Tensor in the new basis.
355354 """
356355 # Single axis
357356 if not is_sequence (axis ):
0 commit comments