Skip to content

Commit

Permalink
cosmetic change
Browse files Browse the repository at this point in the history
  • Loading branch information
roosre committed Sep 9, 2024
1 parent 8eca55e commit e09a57e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ansys/dpf/composites/_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ class PropertyFieldIndexerProtocol(Protocol):
"""Protocol for single value property field indexer."""

def by_id(self, entity_id: int) -> Optional[np.int64]:
"""Get index by id."""
"""
Get index by id.
Note: An exception is thrown if the entry has multiple values.
"""

def by_id_as_array(self, entity_id: int) -> Optional[NDArray[np.int64]]:
"""Get indices by id."""
Expand Down

0 comments on commit e09a57e

Please sign in to comment.