Skip to content

Commit 860c5c2

Browse files
committed
Fix doc
1 parent 452195a commit 860c5c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pina/label_tensor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,11 +509,11 @@ def _update_single_label(self, index, dim):
509509
"""
510510
Update the labels of the tensor based on the index (or list of indices).
511511
512-
:param dict old_labels: Labels from which retrieve data.
513-
:param dict to_update_labels: Labels to update.
514512
:param index: Index of dof to retain.
515513
:type index: int | slice | list[int] | tuple[int] | torch.Tensor
516-
:param int dim: The dimension to update.
514+
:param int dim: Dimension of the indexes in the original tensor.
515+
:return: The updated labels for the specified dimension.
516+
:rtype: list[int]
517517
518518
:raises: ValueError: If the index type is not supported.
519519
"""

0 commit comments

Comments
 (0)