Skip to content

Commit

Permalink
Modify the logic for conformer min_e
Browse files Browse the repository at this point in the history
  • Loading branch information
JintaoWu98 committed Sep 3, 2024
1 parent f751108 commit f9a2535
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arc/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,9 +756,7 @@ def extremum_list(lst: list,
Returns: Optional[Union[int, None]]
The entry with the minimal/maximal value.
"""
if len(lst) == 0:
return None
elif all([entry is None for entry in lst]):
if lst is None or len(lst) == 0 or all([entry is None for entry in lst]):
return None
elif len(lst) == 1:
return lst[0]
Expand Down

0 comments on commit f9a2535

Please sign in to comment.