Skip to content

Commit

Permalink
fix optional args in min_max_X
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsquires committed Sep 20, 2024
1 parent 1e0f503 commit e65a3b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doped/interface/fermi_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1777,8 +1777,8 @@ def _parse_and_check_grid_like_chempots(self, chempots: Optional[dict] = None) -
def min_max_X(
self,
target: str,
min_or_max: str,
chempots: dict,
min_or_max: str = "max",
chempots: Optional[dict] = None,
annealing_temperature: Optional[float] = None,
quenched_temperature: float = 300,
temperature: float = 300,
Expand Down Expand Up @@ -1897,7 +1897,7 @@ def min_max_X(
"""
# Determine the dimensionality of the chemical potential space
chempots, el_refs = self._parse_and_check_grid_like_chempots(chempots)
n_chempots = len(chempots["elemental_refs"])
n_chempots = len(el_refs)

# Call the appropriate method based on dimensionality
if n_chempots == 2:
Expand Down

0 comments on commit e65a3b3

Please sign in to comment.