Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jinningwang committed Oct 4, 2024
1 parent 9a675f5 commit 3adc110
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions andes/core/model/modeldata.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ def find_idx(self, keys, values, allow_none=False, default=False, allow_all=Fals
default : bool, optional
Default idx to return if not found (missing)
allow_all : bool, optional
Return all matches if set to True
If True, returns a list of lists where each nested list contains all the matches for the
corresponding search criteria.
Returns
-------
Expand All @@ -304,8 +305,6 @@ def find_idx(self, keys, values, allow_none=False, default=False, allow_all=Fals
-----
- Only the first match is returned by default.
- If all matches are needed, set `allow_all` to True.
- When `allow_all` is set to True, the function returns a list of lists where each nested list contains
all the matches for the corresponding search criteria.
Examples
--------
Expand Down

0 comments on commit 3adc110

Please sign in to comment.