Skip to content

Commit

Permalink
auto format by ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
aramoto99 committed Jan 15, 2025
1 parent 062d17c commit f943426
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions aiaccel/hpo/algorithms/nelder_mead_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ def get_vertex(self, dimensions: int | None = None) -> npt.NDArray[np.float64]:
assert self.dimensions == dimensions
elif dimensions is None and self.dimensions is None:
raise ValueError(
"dimensions is not set yet. "
"Please provide it on __init__ or get_vertex or call put_vertex in advance."
"dimensions is not set yet. Please provide it on __init__ or get_vertex or call put_vertex in advance."
)

with self.lock:
Expand Down Expand Up @@ -208,8 +207,7 @@ def _generator(self) -> Generator[npt.NDArray[np.float64] | None, None, None]:

if self.dimensions is None:
raise ValueError(
"dimensions is not set yet. "
"Please provide it on __init__ or get_vertex or call put_vertex in advance."
"dimensions is not set yet. Please provide it on __init__ or get_vertex or call put_vertex in advance."
)

if self.dimensions + 1 > len(self.vertices):
Expand Down

0 comments on commit f943426

Please sign in to comment.