Skip to content

Commit

Permalink
fix(optimizer) [evolutionary]: mypy type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrothenberger committed Jan 8, 2024
1 parent 4d37b78 commit 897c4ef
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def perform_evolutionary_search(
arguments: OptimizerArguments,
optimizer_dir: str,
) -> Optional[OptimizerOutputPattern]:
if arguments.evolutionary is None:
raise ValueError("Invalid arguments for evolutionary search: " + str(arguments.evolutionary))
### SETTINGS
population_size = int(arguments.evolutionary[0])
generations = int(arguments.evolutionary[1])
Expand Down

0 comments on commit 897c4ef

Please sign in to comment.