From 3adc1109f7fec126e44cc66818f81ff21a94ac7a Mon Sep 17 00:00:00 2001 From: jinningwang Date: Thu, 3 Oct 2024 21:56:05 -0400 Subject: [PATCH] Format --- andes/core/model/modeldata.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/andes/core/model/modeldata.py b/andes/core/model/modeldata.py index 76ded8a23..a66f2cb8d 100644 --- a/andes/core/model/modeldata.py +++ b/andes/core/model/modeldata.py @@ -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 ------- @@ -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 --------